-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
48 lines (43 loc) · 1.02 KB
/
__init__.py
File metadata and controls
48 lines (43 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""
k3down2 is utility to convert markdown segment into easy to transfer media such as images.
It depends on:
- pandoc to render markdown snippet to html, such as tables.
- graphviz to render graphviz to image.
- playwright (chromium) to render svg/html to png.
- mmdc to convert mermaid chart to svg. See: https://mermaid-js.github.io/mermaid/#
"""
from importlib.metadata import version
__version__ = version("k3down2")
__name__ = "k3down2"
from .down2 import (
code_to_html,
convert,
download,
graphviz_to_img,
md_to_html,
mdtable_to_barehtml,
mermaid_to_svg,
render_to_img,
tex_to_img,
tex_to_plain,
tex_to_zhihu,
tex_to_zhihu_compatible,
tex_to_zhihu_url,
web_to_img,
)
__all__ = [
"code_to_html",
"convert",
"download",
"graphviz_to_img",
"md_to_html",
"mdtable_to_barehtml",
"mermaid_to_svg",
"render_to_img",
"tex_to_img",
"tex_to_plain",
"tex_to_zhihu",
"tex_to_zhihu_compatible",
"tex_to_zhihu_url",
"web_to_img",
]