markdown-pdf 1.2__tar.gz → 1.3__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_pdf-1.2/markdown_pdf.egg-info → markdown_pdf-1.3}/PKG-INFO +18 -1
- {markdown_pdf-1.2 → markdown_pdf-1.3}/README.md +17 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/markdown_pdf/__init__.py +1 -1
- {markdown_pdf-1.2 → markdown_pdf-1.3/markdown_pdf.egg-info}/PKG-INFO +18 -1
- {markdown_pdf-1.2 → markdown_pdf-1.3}/setup.cfg +1 -1
- {markdown_pdf-1.2 → markdown_pdf-1.3}/LICENSE +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/MANIFEST.in +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/markdown_pdf.egg-info/SOURCES.txt +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/markdown_pdf.egg-info/dependency_links.txt +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/markdown_pdf.egg-info/requires.txt +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/markdown_pdf.egg-info/top_level.txt +0 -0
- {markdown_pdf-1.2 → markdown_pdf-1.3}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: markdown_pdf
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3
|
|
4
4
|
Summary: Markdown to pdf renderer
|
|
5
5
|
Home-page: https://github.com/vb64/markdown-pdf
|
|
6
6
|
Author: Vitaly Bogomolov
|
|
@@ -21,6 +21,7 @@ Requires-Dist: markdown-it-py==3.0.0
|
|
|
21
21
|
[](https://github.com/vb64/markdown-pdf/actions?query=workflow%3Apy3)
|
|
22
22
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
23
23
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
|
|
24
|
+
[](https://pypistats.org/packages/markdown-pdf)
|
|
24
25
|
|
|
25
26
|
The free, open source Python module `markdown-pdf` will create a PDF file from your content in `markdown` format.
|
|
26
27
|
|
|
@@ -32,6 +33,7 @@ When creating a PDF file you can:
|
|
|
32
33
|
- Create a TableOfContents (bookmarks) from markdown headings
|
|
33
34
|
- Tune the necessary elements using your CSS code
|
|
34
35
|
- Use different page sizes within single pdf
|
|
36
|
+
- Create tables in `markdown`
|
|
35
37
|
|
|
36
38
|
The module utilizes the functions of two great libraries.
|
|
37
39
|
|
|
@@ -79,6 +81,21 @@ The section has landscape orientation of A4 pages.
|
|
|
79
81
|
pdf.add_section(Section("## Head2\n\n### Head3\n\n", paper_size="A4-L"))
|
|
80
82
|
```
|
|
81
83
|
|
|
84
|
+
Add a fourth section with a table.
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
|
|
88
|
+
text = """# Section with Table
|
|
89
|
+
|
|
90
|
+
|TableHeader1|TableHeader2|
|
|
91
|
+
|--|--|
|
|
92
|
+
|Text1|Text2|
|
|
93
|
+
|ListCell|<ul><li>FirstBullet</li><li>SecondBullet</li></ul>|
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
pdf.add_section(Section(text))
|
|
97
|
+
```
|
|
98
|
+
|
|
82
99
|
Set the properties of the pdf document.
|
|
83
100
|
|
|
84
101
|
```python
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[](https://github.com/vb64/markdown-pdf/actions?query=workflow%3Apy3)
|
|
5
5
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
6
6
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
|
|
7
|
+
[](https://pypistats.org/packages/markdown-pdf)
|
|
7
8
|
|
|
8
9
|
The free, open source Python module `markdown-pdf` will create a PDF file from your content in `markdown` format.
|
|
9
10
|
|
|
@@ -15,6 +16,7 @@ When creating a PDF file you can:
|
|
|
15
16
|
- Create a TableOfContents (bookmarks) from markdown headings
|
|
16
17
|
- Tune the necessary elements using your CSS code
|
|
17
18
|
- Use different page sizes within single pdf
|
|
19
|
+
- Create tables in `markdown`
|
|
18
20
|
|
|
19
21
|
The module utilizes the functions of two great libraries.
|
|
20
22
|
|
|
@@ -62,6 +64,21 @@ The section has landscape orientation of A4 pages.
|
|
|
62
64
|
pdf.add_section(Section("## Head2\n\n### Head3\n\n", paper_size="A4-L"))
|
|
63
65
|
```
|
|
64
66
|
|
|
67
|
+
Add a fourth section with a table.
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
|
|
71
|
+
text = """# Section with Table
|
|
72
|
+
|
|
73
|
+
|TableHeader1|TableHeader2|
|
|
74
|
+
|--|--|
|
|
75
|
+
|Text1|Text2|
|
|
76
|
+
|ListCell|<ul><li>FirstBullet</li><li>SecondBullet</li></ul>|
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
pdf.add_section(Section(text))
|
|
80
|
+
```
|
|
81
|
+
|
|
65
82
|
Set the properties of the pdf document.
|
|
66
83
|
|
|
67
84
|
```python
|
|
@@ -38,7 +38,7 @@ class MarkdownPdf:
|
|
|
38
38
|
|
|
39
39
|
# zero, commonmark, js-default, gfm-like
|
|
40
40
|
# https://markdown-it-py.readthedocs.io/en/latest/using.html#quick-start
|
|
41
|
-
self.m_d = (MarkdownIt(mode))
|
|
41
|
+
self.m_d = (MarkdownIt(mode).enable('table')) # Enable support for tables
|
|
42
42
|
|
|
43
43
|
self.out_file = io.BytesIO()
|
|
44
44
|
self.writer = fitz.DocumentWriter(self.out_file)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: markdown_pdf
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3
|
|
4
4
|
Summary: Markdown to pdf renderer
|
|
5
5
|
Home-page: https://github.com/vb64/markdown-pdf
|
|
6
6
|
Author: Vitaly Bogomolov
|
|
@@ -21,6 +21,7 @@ Requires-Dist: markdown-it-py==3.0.0
|
|
|
21
21
|
[](https://github.com/vb64/markdown-pdf/actions?query=workflow%3Apy3)
|
|
22
22
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
23
23
|
[](https://app.codacy.com/gh/vb64/markdown-pdf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
|
|
24
|
+
[](https://pypistats.org/packages/markdown-pdf)
|
|
24
25
|
|
|
25
26
|
The free, open source Python module `markdown-pdf` will create a PDF file from your content in `markdown` format.
|
|
26
27
|
|
|
@@ -32,6 +33,7 @@ When creating a PDF file you can:
|
|
|
32
33
|
- Create a TableOfContents (bookmarks) from markdown headings
|
|
33
34
|
- Tune the necessary elements using your CSS code
|
|
34
35
|
- Use different page sizes within single pdf
|
|
36
|
+
- Create tables in `markdown`
|
|
35
37
|
|
|
36
38
|
The module utilizes the functions of two great libraries.
|
|
37
39
|
|
|
@@ -79,6 +81,21 @@ The section has landscape orientation of A4 pages.
|
|
|
79
81
|
pdf.add_section(Section("## Head2\n\n### Head3\n\n", paper_size="A4-L"))
|
|
80
82
|
```
|
|
81
83
|
|
|
84
|
+
Add a fourth section with a table.
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
|
|
88
|
+
text = """# Section with Table
|
|
89
|
+
|
|
90
|
+
|TableHeader1|TableHeader2|
|
|
91
|
+
|--|--|
|
|
92
|
+
|Text1|Text2|
|
|
93
|
+
|ListCell|<ul><li>FirstBullet</li><li>SecondBullet</li></ul>|
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
pdf.add_section(Section(text))
|
|
97
|
+
```
|
|
98
|
+
|
|
82
99
|
Set the properties of the pdf document.
|
|
83
100
|
|
|
84
101
|
```python
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|