markdown_convert 2.0.6__tar.gz → 2.0.8__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.
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/PKG-INFO +1 -1
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/constants.py +3 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/extras.py +6 -3
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/pyproject.toml +1 -1
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/.gitignore +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/LICENSE +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/README.md +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/__init__.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/__main__.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/code.css +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/default.css +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/__init__.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/autoinstall.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/convert.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/resources.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/transform.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/utils.py +0 -0
- {markdown_convert-2.0.6 → markdown_convert-2.0.8}/markdown_convert/modules/validate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown_convert
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.8
|
|
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>
|
|
@@ -106,7 +106,7 @@ class SyntaxHighlightExtra(ExtraFeature):
|
|
|
106
106
|
|
|
107
107
|
try:
|
|
108
108
|
highlighted = highlight(
|
|
109
|
-
code,
|
|
109
|
+
html.unescape(code),
|
|
110
110
|
get_lexer_by_name(lang),
|
|
111
111
|
HtmlFormatter(nowrap=True, classprefix="pygments-"),
|
|
112
112
|
)
|
|
@@ -158,7 +158,7 @@ class InlineMathExtra(ExtraFeature):
|
|
|
158
158
|
str: Tag representing the LaTeX math expression.
|
|
159
159
|
"""
|
|
160
160
|
content = match.group("content")
|
|
161
|
-
converted = mathml.convert(content)
|
|
161
|
+
converted = mathml.convert(html.unescape(content))
|
|
162
162
|
return converted
|
|
163
163
|
|
|
164
164
|
|
|
@@ -182,7 +182,7 @@ class BlockMathExtra(ExtraFeature):
|
|
|
182
182
|
str: Tag representing the LaTeX math expression.
|
|
183
183
|
"""
|
|
184
184
|
content = match.group("content")
|
|
185
|
-
converted = mathml.convert(content, display="block")
|
|
185
|
+
converted = mathml.convert(html.unescape(content), display="block")
|
|
186
186
|
return converted
|
|
187
187
|
|
|
188
188
|
|
|
@@ -272,6 +272,7 @@ class MermaidExtra(ExtraFeature):
|
|
|
272
272
|
str: SVG tag representing the mermaid diagram.
|
|
273
273
|
"""
|
|
274
274
|
content = match.group("content")
|
|
275
|
+
content = html.unescape(content)
|
|
275
276
|
return f'<div class="mermaid">{content}</div>'
|
|
276
277
|
|
|
277
278
|
|
|
@@ -317,6 +318,7 @@ class VegaExtra(ExtraFeature):
|
|
|
317
318
|
data_spec["values"] = table.to_dict(orient="records")
|
|
318
319
|
|
|
319
320
|
content = match.group("content")
|
|
321
|
+
content = html.unescape(content)
|
|
320
322
|
spec = None
|
|
321
323
|
|
|
322
324
|
# Parse JSON or YAML
|
|
@@ -374,6 +376,7 @@ class SchemDrawExtra(ExtraFeature):
|
|
|
374
376
|
str: SVG tag representing the schemdraw diagram.
|
|
375
377
|
"""
|
|
376
378
|
content = match.group("content")
|
|
379
|
+
content = html.unescape(content)
|
|
377
380
|
try:
|
|
378
381
|
diagram = from_yaml_string(content)
|
|
379
382
|
svg_string = diagram.get_imagedata("svg").decode("utf-8")
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "markdown_convert"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.8"
|
|
8
8
|
description = "Convert Markdown files to PDF from your command line."
|
|
9
9
|
authors = [{ name = "Julio Cabria", email = "juliocabria@tutanota.com" }]
|
|
10
10
|
license = { text = "GPL-2.0-only" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|