markdown_convert 1.2.12__py3-none-any.whl → 1.2.30__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/__init__.py +11 -0
- markdown_convert/__main__.py +95 -0
- markdown_convert/code.css +73 -73
- markdown_convert/default.css +223 -373
- markdown_convert/modules/__init__.py +4 -0
- markdown_convert/modules/constants.py +25 -0
- markdown_convert/modules/convert.py +338 -0
- markdown_convert/modules/resources.py +101 -0
- markdown_convert/modules/transform.py +94 -0
- markdown_convert/modules/utils.py +38 -0
- markdown_convert/modules/validate.py +61 -0
- markdown_convert-1.2.30.dist-info/METADATA +105 -0
- markdown_convert-1.2.30.dist-info/RECORD +16 -0
- {markdown_convert-1.2.12.dist-info → markdown_convert-1.2.30.dist-info}/WHEEL +1 -1
- {markdown_convert-1.2.12.dist-info → markdown_convert-1.2.30.dist-info}/licenses/LICENSE +339 -339
- markdown_convert-1.2.12.dist-info/METADATA +0 -80
- markdown_convert-1.2.12.dist-info/RECORD +0 -7
- {markdown_convert-1.2.12.dist-info → markdown_convert-1.2.30.dist-info}/entry_points.txt +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: markdown_convert
|
|
3
|
-
Version: 1.2.12
|
|
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: <4.0,>=3.9
|
|
13
|
-
Requires-Dist: argsdict==1.0.0
|
|
14
|
-
Requires-Dist: markdown2<3,>=2.4.13
|
|
15
|
-
Requires-Dist: pygments<3,>=2.17.2
|
|
16
|
-
Requires-Dist: weasyprint<70.0,>=62.3
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
|
|
19
|
-
# markdown-convert
|
|
20
|
-
|
|
21
|
-
_Convert Markdown files to PDF from your command line._
|
|
22
|
-
|
|
23
|
-
### `pip install markdown-convert`
|
|
24
|
-
|
|
25
|
-
<br>
|
|
26
|
-
|
|
27
|
-
[](https://github.com/Julynx/markdown-convert)
|
|
28
|
-
[](https://pypi.org/project/markdown_convert)
|
|
29
|
-
|
|
30
|
-
<br>
|
|
31
|
-
|
|
32
|
-
<img src='https://i.imgur.com/SZIz2gY.png' width='80%'>
|
|
33
|
-
|
|
34
|
-
`markdown-convert` is an elegant command-line tool that converts Markdown files to PDF, powered by the amazing `markdown2` and `weasyprint` libraries.
|
|
35
|
-
|
|
36
|
-
Unlike other similar tools, it relies solely on Python packages to do the job, eliminating the need for any external system-level dependencies when running on Linux.
|
|
37
|
-
|
|
38
|
-
If you're running Windows, you only need to install the GTK-3 runtime from the following link: [GTK-3 Runtime](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases).
|
|
39
|
-
|
|
40
|
-
### Features
|
|
41
|
-
|
|
42
|
-
- ⚡️ Supports live compilation, so you can preview your PDF in real-time as you type.
|
|
43
|
-
- 🌸 Comes with beautiful CSS out of the box, making your documents look great from the start.
|
|
44
|
-
- 🎨 Syntax highlighting for code blocks included.
|
|
45
|
-
- 🪐 Designed for the 21st century, with relative links, pipe tables, and modern CSS paged media features.
|
|
46
|
-
|
|
47
|
-
### Usage
|
|
48
|
-
|
|
49
|
-
> Note: If you just installed the package, you may need to log out and log back in for the `markdown-convert` command to be registered to your PATH.
|
|
50
|
-
|
|
51
|
-
Run `markdown-convert -h` right from your terminal to check out the available options:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
Usage:
|
|
55
|
-
markdown-convert [markdown_file_path] [options]
|
|
56
|
-
|
|
57
|
-
Options:
|
|
58
|
-
--mode=once|live
|
|
59
|
-
Convert the markdown file once (default) or live.
|
|
60
|
-
--css=[css_file_path]
|
|
61
|
-
Use a custom CSS file.
|
|
62
|
-
--out=[output_file_path]
|
|
63
|
-
Specify the output file path.
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
...or import any of the functions from the package to use them in your own code:
|
|
67
|
-
|
|
68
|
-
```python
|
|
69
|
-
from markdown_convert import convert, live_convert
|
|
70
|
-
|
|
71
|
-
# Convert your Markdown file to PDF once
|
|
72
|
-
convert('README.md', 'style.css', 'README.pdf')
|
|
73
|
-
|
|
74
|
-
# Convert your Markdown file to PDF every time it changes
|
|
75
|
-
live_convert('README.md', 'style.css', 'README.pdf')
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Integrations
|
|
79
|
-
|
|
80
|
-
Right click a Markdown file and `Convert to PDF` with the [markdown_convert_explorer](https://github.com/Julynx/markdown_convert_explorer) and [markdown_convert_nautilus](https://github.com/Julynx/markdown_convert_nautilus) extensions for Windows and Linux.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
markdown_convert/code.css,sha256=ZQtsG8A0lgzA44m7qJ4HjbOX5y8eSWwsgMCj3R3WkwM,5008
|
|
2
|
-
markdown_convert/default.css,sha256=Ke6r5X7M6c5czCrjTK9FXCbNj_XfFEi7ArYxE2r_Ae0,9010
|
|
3
|
-
markdown_convert-1.2.12.dist-info/METADATA,sha256=QBfMeN0fACBRaYi8Ho2PNynP7pUgaBt6LddXfY20Pm4,3121
|
|
4
|
-
markdown_convert-1.2.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
-
markdown_convert-1.2.12.dist-info/entry_points.txt,sha256=RCmzC7C0sX-SpzIP2Cr34rhg3lMd7BRx-exaZPfK8bU,68
|
|
6
|
-
markdown_convert-1.2.12.dist-info/licenses/LICENSE,sha256=GJsa-V1mEVHgVM6hDJGz11Tk3k0_7PsHTB-ylHb3Fns,18431
|
|
7
|
-
markdown_convert-1.2.12.dist-info/RECORD,,
|
|
File without changes
|