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.
- {bare_script-5.1.5/src/bare_script.egg-info → bare_script-5.1.6}/PKG-INFO +1 -1
- {bare_script-5.1.5 → bare_script-5.1.6}/pyproject.toml +1 -1
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/include.py +23 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/include_source.py +771 -553
- {bare_script-5.1.5 → bare_script-5.1.6/src/bare_script.egg-info}/PKG-INFO +1 -1
- {bare_script-5.1.5 → bare_script-5.1.6}/LICENSE +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/README.md +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/setup.cfg +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/setup.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/__init__.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/__main__.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/bare.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/library.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/options.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/runtime.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/runtime_c.c +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script/value.py +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-5.1.5 → bare_script-5.1.6}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -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
|
#
|