markdown_convert 1.2.12__py3-none-any.whl → 1.2.32__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.
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: markdown_convert
3
+ Version: 1.2.32
4
+ Summary: Convert Markdown files to PDF from your command line.
5
+ Project-URL: homepage, https://github.com/Julynx/markdown_convert
6
+ Author-email: Julio Cabria <juliocabria@tutanota.com>
7
+ License: GPL-2.0-only
8
+ License-File: LICENSE
9
+ Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: <3.15,>=3.9
13
+ Requires-Dist: argsdict==1.0.0
14
+ Requires-Dist: latex2mathml>=3.78.1
15
+ Requires-Dist: markdown2<3,>=2.4.13
16
+ Requires-Dist: playwright>=1.57.0
17
+ Requires-Dist: pygments<3,>=2.17.2
18
+ Description-Content-Type: text/markdown
19
+
20
+ # markdown-convert
21
+
22
+ _Convert Markdown files to PDF from your command line._
23
+
24
+ `pip install markdown-convert`
25
+
26
+ <br>
27
+
28
+ [![Button Hover](https://img.shields.io/badge/Github-c9510c?style=for-the-badge)](https://github.com/Julynx/markdown-convert)
29
+ [![Button Hover](https://img.shields.io/badge/PyPi-006dad?style=for-the-badge)](https://pypi.org/project/markdown_convert)
30
+
31
+ <br>
32
+
33
+ <img src='https://i.imgur.com/uWDm7s0.png' width='80%'>
34
+
35
+ ----
36
+
37
+ - [markdown-convert](#markdown-convert)
38
+ - [Why `markdown-convert`?](#why-markdown-convert)
39
+ - [Installation](#installation)
40
+ - [Usage](#usage)
41
+ - [1. From your terminal](#1-from-your-terminal)
42
+ - [2. As a Python library](#2-as-a-python-library)
43
+ - [3. From the context menu of your file explorer](#3-from-the-context-menu-of-your-file-explorer)
44
+
45
+ ## Why `markdown-convert`?
46
+
47
+ Unlike other similar tools, `markdown-convert`:
48
+
49
+ - Can be fully installed via `pip install markdown-convert`, with no external system-level dependencies.
50
+ - Comes with a sensible default CSS stylesheet out of the box.
51
+ - Supports:
52
+ - **LaTeX math equations:** `$...$` for inline and `$$...$$` for block equations.
53
+ - **Mermaid diagrams:** ` ```mermaid ...``` ` code blocks get rendered as diagrams.
54
+ - **Syntax highlighting for code blocks:** Applied automatically based on the specified language.
55
+ - **Live conversion:** `markdown-convert file.md --mode=live` updates the PDF every time the Markdown file changes.
56
+ - **Custom CSS** `markdown-convert file.md --css=style.css` extends the default CSS with your own stylesheet.
57
+ - **Pipe tables, checkboxes, header links, CSS paged media features and more!**
58
+
59
+ ## Installation
60
+
61
+ `markdown-convert` is available on PyPI and can be installed via pip:
62
+
63
+ ```bash
64
+ pip install markdown-convert
65
+ ```
66
+
67
+ ## Usage
68
+
69
+ ### 1. From your terminal
70
+
71
+ Simply run `markdown-convert file.md` to convert `file.md` to `file.pdf`.
72
+
73
+ You can specify the following options:
74
+
75
+ - `--mode=once|live`: Convert the markdown file once (default) or live.
76
+ - `--css=[css_file_path]`: Use a custom CSS file.
77
+ - `--out=[output_file_path]`: Specify the output file path.
78
+
79
+ For example: `markdown-convert README.md --mode=live --css=style.css --out=output.pdf` will convert `README.md` to `output.pdf` using `style.css` and update the PDF live as you edit the Markdown file.
80
+
81
+ ### 2. As a Python library
82
+
83
+ You can also use `markdown-convert` as a library in your Python code:
84
+
85
+ ```python
86
+ from markdown_convert import convert, convert_text, live_convert
87
+
88
+ # Convert your Markdown file and save it as a PDF file
89
+ convert('README.md', 'style.css', 'README.pdf')
90
+
91
+ # Convert your Markdown string and get the PDF bytes
92
+ pdf_bytes = convert_text('# Hello World', 'h1 { color: red; }')
93
+
94
+ # Convert your Markdown file to PDF every time it changes
95
+ live_convert('README.md', 'style.css', 'README.pdf')
96
+ ```
97
+
98
+ ### 3. From the context menu of your file explorer
99
+
100
+ Install the extension of your choice:
101
+
102
+ - For Windows Explorer: [markdown_convert_explorer](https://github.com/Julynx/markdown_convert_explorer)
103
+ - For Linux (Nautilus): [markdown_convert_nautilus](https://github.com/Julynx/markdown_convert_nautilus)
104
+
105
+ Then right click any Markdown file and select `Convert to PDF` to convert it.
@@ -0,0 +1,16 @@
1
+ markdown_convert/__init__.py,sha256=ysW3pXsDGGK4PzZHcIBTpfVW58IkDUwHffDkf_GM6UU,303
2
+ markdown_convert/__main__.py,sha256=hO7AO0GnzPMPNqls8r5aF2C-7l9aFHDf1m8mXSy1GBE,2809
3
+ markdown_convert/code.css,sha256=Wt4FqFqJcpT-jwY3GN-o4ZRCCXU8DQj-9lqKdGiuoyw,4935
4
+ markdown_convert/default.css,sha256=lSblm_9d2dA1kCTspeGlJMtt3-SeYX1k2YzsVXbhRw4,3109
5
+ markdown_convert/modules/__init__.py,sha256=PFPgiQhMXgyfjD8BkfLC_X8AR1jz-dCxfif2qmNofJs,65
6
+ markdown_convert/modules/constants.py,sha256=_h6N0fhG9K1hQPmp3eYu53TfQnAPe7RtmMj-2FCD7VU,495
7
+ markdown_convert/modules/convert.py,sha256=R1xIKW6UVGP7a6VK5C6qLK278wBlHZV9X6Y9q73mz_k,9843
8
+ markdown_convert/modules/resources.py,sha256=tnW8JmCrJNBRbzOcaOVG6GX5jPC8Kzj3dA7gX0B935A,2488
9
+ markdown_convert/modules/transform.py,sha256=Vm6FeYT1n0-ytesd7vVQfSXitSNLt5cegApk4l6n5SQ,3131
10
+ markdown_convert/modules/utils.py,sha256=NX0WegM8e8MPKNNmweTujAWO8ZghdB8LSGDx20K2E44,655
11
+ markdown_convert/modules/validate.py,sha256=XV_k7cHeifEKDaltF26tCmabs2-Me5msP3enI_eVwfA,1517
12
+ markdown_convert-1.2.32.dist-info/METADATA,sha256=S8EjU4dfpsRzj2dsRM2JfhxWmBdNFsykhbs-tfd0QhM,3895
13
+ markdown_convert-1.2.32.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ markdown_convert-1.2.32.dist-info/entry_points.txt,sha256=RCmzC7C0sX-SpzIP2Cr34rhg3lMd7BRx-exaZPfK8bU,68
15
+ markdown_convert-1.2.32.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
16
+ markdown_convert-1.2.32.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any