markdown_convert 1.2.26__py3-none-any.whl → 1.2.27__py3-none-any.whl
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.
- markdown_convert/modules/transform.py +8 -2
- {markdown_convert-1.2.26.dist-info → markdown_convert-1.2.27.dist-info}/METADATA +1 -1
- {markdown_convert-1.2.26.dist-info → markdown_convert-1.2.27.dist-info}/RECORD +6 -6
- {markdown_convert-1.2.26.dist-info → markdown_convert-1.2.27.dist-info}/WHEEL +0 -0
- {markdown_convert-1.2.26.dist-info → markdown_convert-1.2.27.dist-info}/entry_points.txt +0 -0
- {markdown_convert-1.2.26.dist-info → markdown_convert-1.2.27.dist-info}/licenses/LICENSE +0 -0
|
@@ -53,13 +53,19 @@ def render_mermaid_diagrams(html, *, nonce):
|
|
|
53
53
|
|
|
54
54
|
Args:
|
|
55
55
|
html (str): HTML content.
|
|
56
|
+
nonce (str): Cryptographic nonce for CSP.
|
|
56
57
|
Returns:
|
|
57
58
|
str: HTML content with rendered Mermaid diagrams.
|
|
58
59
|
"""
|
|
59
60
|
mermaid_script = f"""
|
|
60
61
|
<script type="module" nonce="{nonce}">
|
|
61
|
-
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@
|
|
62
|
-
mermaid.initialize({{
|
|
62
|
+
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
|
|
63
|
+
mermaid.initialize({{
|
|
64
|
+
startOnLoad: true,
|
|
65
|
+
theme: 'default',
|
|
66
|
+
themeVariables: {{}},
|
|
67
|
+
fontFamily: 'arial, verdana, sans-serif'
|
|
68
|
+
}});
|
|
63
69
|
</script>
|
|
64
70
|
"""
|
|
65
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown_convert
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.27
|
|
4
4
|
Summary: Convert Markdown files to PDF from your command line.
|
|
5
5
|
Project-URL: homepage, https://github.com/Julynx/markdown_convert
|
|
6
6
|
Author-email: Julio Cabria <juliocabria@tutanota.com>
|
|
@@ -6,11 +6,11 @@ markdown_convert/modules/__init__.py,sha256=PFPgiQhMXgyfjD8BkfLC_X8AR1jz-dCxfif2
|
|
|
6
6
|
markdown_convert/modules/constants.py,sha256=3pHREdede6XhR-Jlp_SSm1hg0CtJNApdL-T7Rs-G_Bk,475
|
|
7
7
|
markdown_convert/modules/convert.py,sha256=a3WfnWxATHqqLsMG3WUYmfdGIF3-ZFifUqDCM044WV4,9725
|
|
8
8
|
markdown_convert/modules/resources.py,sha256=tnW8JmCrJNBRbzOcaOVG6GX5jPC8Kzj3dA7gX0B935A,2488
|
|
9
|
-
markdown_convert/modules/transform.py,sha256=
|
|
9
|
+
markdown_convert/modules/transform.py,sha256=NEjrPOR9yA8sxnh1kDWbVfBrDmkUMnBn2_Shmdi0bIE,1906
|
|
10
10
|
markdown_convert/modules/utils.py,sha256=NX0WegM8e8MPKNNmweTujAWO8ZghdB8LSGDx20K2E44,655
|
|
11
11
|
markdown_convert/modules/validate.py,sha256=XV_k7cHeifEKDaltF26tCmabs2-Me5msP3enI_eVwfA,1517
|
|
12
|
-
markdown_convert-1.2.
|
|
13
|
-
markdown_convert-1.2.
|
|
14
|
-
markdown_convert-1.2.
|
|
15
|
-
markdown_convert-1.2.
|
|
16
|
-
markdown_convert-1.2.
|
|
12
|
+
markdown_convert-1.2.27.dist-info/METADATA,sha256=dXCy9bq8Xwo8Yy7gyIank7BcwV3Em9-IpmQS--2BqaU,3883
|
|
13
|
+
markdown_convert-1.2.27.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
14
|
+
markdown_convert-1.2.27.dist-info/entry_points.txt,sha256=RCmzC7C0sX-SpzIP2Cr34rhg3lMd7BRx-exaZPfK8bU,68
|
|
15
|
+
markdown_convert-1.2.27.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
16
|
+
markdown_convert-1.2.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|