bare-script 5.1.5__tar.gz → 5.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {bare_script-5.1.5/src/bare_script.egg-info → bare_script-5.1.6}/PKG-INFO +1 -1
  2. {bare_script-5.1.5 → bare_script-5.1.6}/pyproject.toml +1 -1
  3. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/include.py +23 -0
  4. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/include_source.py +771 -553
  5. {bare_script-5.1.5 → bare_script-5.1.6/src/bare_script.egg-info}/PKG-INFO +1 -1
  6. {bare_script-5.1.5 → bare_script-5.1.6}/LICENSE +0 -0
  7. {bare_script-5.1.5 → bare_script-5.1.6}/README.md +0 -0
  8. {bare_script-5.1.5 → bare_script-5.1.6}/setup.cfg +0 -0
  9. {bare_script-5.1.5 → bare_script-5.1.6}/setup.py +0 -0
  10. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/__init__.py +0 -0
  11. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/__main__.py +0 -0
  12. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/bare.py +0 -0
  13. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/library.py +0 -0
  14. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/options.py +0 -0
  15. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/runtime.py +0 -0
  16. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/runtime_c.c +0 -0
  17. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/value.py +0 -0
  18. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/SOURCES.txt +0 -0
  19. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/dependency_links.txt +0 -0
  20. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/entry_points.txt +0 -0
  21. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/requires.txt +0 -0
  22. {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 5.1.5
3
+ Version: 5.1.6
4
4
  Summary: BareScript; a lightweight scripting and expression language
5
5
  Author-email: "Craig A. Hobbs" <craigahobbs@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "bare-script"
7
- version = "5.1.5"
7
+ version = "5.1.6"
8
8
  description = "BareScript; a lightweight scripting and expression language"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -30,6 +30,7 @@ execute_script(
30
30
  {'url': 'markdown.bare', 'system': True},
31
31
  {'url': 'markdownElements.bare', 'system': True},
32
32
  {'url': 'markdownParser.bare', 'system': True},
33
+ {'url': 'markdownString.bare', 'system': True},
33
34
  {'url': 'qrcode.bare', 'system': True},
34
35
  {'url': 'schema.bare', 'system': True},
35
36
  {'url': 'schemaDoc.bare', 'system': True},
@@ -499,6 +500,28 @@ def markdown_parse(text):
499
500
  return _INCLUDE_GLOBALS['markdownParse']([text], _include_options())
500
501
 
501
502
 
503
+ #
504
+ # markdownString.bare
505
+ #
506
+
507
+
508
+ def markdown_to_string(markdown, wrap_width=None, ref_count=None):
509
+ """
510
+ Render a Markdown model as Markdown text
511
+
512
+ :param dict markdown: The Markdown model
513
+ :param wrap_width: The text wrap width (default is 100). If zero or less, text is not wrapped.
514
+ :type wrap_width: int or None, optional
515
+ :param ref_count: The minimum number of occurrences of a link/image URL for which a link/image
516
+ reference is rendered (default is 0). If zero or less, all links/images are rendered inline.
517
+ :type ref_count: int or None, optional
518
+ :return: The Markdown text
519
+ :rtype: str
520
+ """
521
+
522
+ return _INCLUDE_GLOBALS['markdownToString']([markdown, wrap_width, ref_count], _include_options())
523
+
524
+
502
525
  #
503
526
  # qrcode.bare
504
527
  #