pyhtml2md 1.5.3__cp311-cp311-win_amd64.whl → 1.7.0__cp311-cp311-win_amd64.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.
Potentially problematic release.
This version of pyhtml2md might be problematic. Click here for more details.
- {pyhtml2md-1.5.3.dist-info → pyhtml2md-1.7.0.dist-info}/METADATA +135 -123
- pyhtml2md-1.7.0.dist-info/RECORD +5 -0
- {pyhtml2md-1.5.3.dist-info → pyhtml2md-1.7.0.dist-info}/WHEEL +1 -1
- pyhtml2md.cp311-win_amd64.pyd +0 -0
- pyhtml2md-1.5.3.dist-info/RECORD +0 -6
- pyhtml2md-1.5.3.dist-info/top_level.txt +0 -1
- {pyhtml2md-1.5.3.dist-info → pyhtml2md-1.7.0.dist-info/licenses}/COPYING +0 -0
|
@@ -1,123 +1,135 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pyhtml2md
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Transform your HTML into clean, easy-to-read markdown with pyhtml2md.
|
|
5
|
-
|
|
6
|
-
Author: Tim Gromeyer
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
|
92
|
-
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
| `
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `
|
|
103
|
-
| `
|
|
104
|
-
| `
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
112
|
-
| `
|
|
113
|
-
| `
|
|
114
|
-
| `
|
|
115
|
-
| `
|
|
116
|
-
| `
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
| `
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyhtml2md
|
|
3
|
+
Version: 1.7.0
|
|
4
|
+
Summary: Transform your HTML into clean, easy-to-read markdown with pyhtml2md.
|
|
5
|
+
Keywords: html,markdown,html-to-markdown,python3,cpp17,cpp-library,html2markdown,html2md
|
|
6
|
+
Author-Email: Tim Gromeyer <sakul8826@gmail.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: C++
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Topic :: File Formats
|
|
18
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
19
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
20
|
+
Project-URL: Repository, https://github.com/tim-gromeyer/html2md
|
|
21
|
+
Requires-Python: >=3.7
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest>=6.0; extra == "test"
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# pyhtml2md
|
|
27
|
+
|
|
28
|
+
pyhtml2md provides a way to use the html2md C++ library in Python. html2md is a fast and reliable library for converting HTML content into markdown.
|
|
29
|
+
|
|
30
|
+
<div class="hidable-toc">
|
|
31
|
+
|
|
32
|
+
- [Installation](#installation)
|
|
33
|
+
- [Basic usage](#basic-usage)
|
|
34
|
+
- [Advanced usage](#advanced-usage)
|
|
35
|
+
- [Supported Tags](#supported-tags)
|
|
36
|
+
- [License](#license)
|
|
37
|
+
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div id="doxygen-toc" style="visibility:hidden">
|
|
41
|
+
|
|
42
|
+
[TOC]
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
You can install using pip:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip3 install pyhtml2md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Basic usage
|
|
56
|
+
|
|
57
|
+
Here is an example of how to use the pyhtml2md to convert HTML to markdown:
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
import pyhtml2md
|
|
61
|
+
|
|
62
|
+
markdown = pyhtml2md.convert("<h1>Hello, world!</h1>")
|
|
63
|
+
print(markdown)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The `convert` function takes an HTML string as input and returns a markdown string.
|
|
67
|
+
|
|
68
|
+
## Advanced usage
|
|
69
|
+
|
|
70
|
+
pyhtml2md provides a `Options` class to customize the generation process.
|
|
71
|
+
You can find all information on the c++ [documentation](https://tim-gromeyer.github.io/html2md/index.html)
|
|
72
|
+
|
|
73
|
+
Here is an example:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
import pyhtml2md
|
|
77
|
+
|
|
78
|
+
options = pyhtml2md.Options()
|
|
79
|
+
options.splitLines = False
|
|
80
|
+
|
|
81
|
+
converter = pyhtml2md.Converter("<h1>Hello Python!</h1>", options)
|
|
82
|
+
markdown = converter.convert()
|
|
83
|
+
print(markdown)
|
|
84
|
+
print(converter.ok())
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Supported Tags
|
|
88
|
+
|
|
89
|
+
pyhtml2md supports the following HTML tags:
|
|
90
|
+
|
|
91
|
+
| Tag | Description | Comment |
|
|
92
|
+
|--------------|--------------------|-----------------------------------------------------|
|
|
93
|
+
| `a` | Anchor or link | Supports the `href`, `name` and `title` attributes. |
|
|
94
|
+
| `b` | Bold | |
|
|
95
|
+
| `blockquote` | Indented paragraph | |
|
|
96
|
+
| `br` | Line break | |
|
|
97
|
+
| `cite` | Inline citation | Same as `i`. |
|
|
98
|
+
| `code` | Code | |
|
|
99
|
+
| `dd` | Definition data | |
|
|
100
|
+
| `del` | Strikethrough | |
|
|
101
|
+
| `dfn` | Definition | Same as `i`. |
|
|
102
|
+
| `div` | Document division | |
|
|
103
|
+
| `em` | Emphasized | Same as `i`. |
|
|
104
|
+
| `h1` | Level 1 heading | |
|
|
105
|
+
| `h2` | Level 2 heading | |
|
|
106
|
+
| `h3` | Level 3 heading | |
|
|
107
|
+
| `h4` | Level 4 heading | |
|
|
108
|
+
| `h5` | Level 5 heading | |
|
|
109
|
+
| `h6` | Level 6 heading | |
|
|
110
|
+
| `head` | Document header | Ignored. |
|
|
111
|
+
| `hr` | Horizontal line | |
|
|
112
|
+
| `i` | Italic | |
|
|
113
|
+
| `img` | Image | Supports `src`, `alt`, `title` attributes. |
|
|
114
|
+
| `li` | List item | |
|
|
115
|
+
| `meta` | Meta-information | Ignored. |
|
|
116
|
+
| `ol` | Ordered list | |
|
|
117
|
+
| `p` | Paragraph | |
|
|
118
|
+
| `pre` | Preformatted text | Works only with `code`. |
|
|
119
|
+
| `s` | Strikethrough | Same as `del`. |
|
|
120
|
+
| `span` | Grouped elements | Does nothing. |
|
|
121
|
+
| `strong` | Strong | Same as `b`. |
|
|
122
|
+
| `table` | Table | Tables are formatted! |
|
|
123
|
+
| `tbody` | Table body | Does nothing. |
|
|
124
|
+
| `td` | Table data cell | Uses `align` from `th`. |
|
|
125
|
+
| `tfoot` | Table footer | Does nothing. |
|
|
126
|
+
| `th` | Table header cell | Supports the `align` attribute. |
|
|
127
|
+
| `thead` | Table header | Does nothing. |
|
|
128
|
+
| `title` | Document title | Same as `h1`. |
|
|
129
|
+
| `tr` | Table row | |
|
|
130
|
+
| `u` | Underlined | Uses HTML. |
|
|
131
|
+
| `ul` | Unordered list | |
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
pyhtml2md is licensed under [The MIT License (MIT)](https://opensource.org/licenses/MIT)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pyhtml2md.cp311-win_amd64.pyd,sha256=mCRtZZazER7YtgaDuZACmy7K2ve26SN_SCCh4njliF4,250368
|
|
2
|
+
pyhtml2md-1.7.0.dist-info/METADATA,sha256=QFm0J0J6iySK6jo7eaUIbkaplkimrJsfEwJvv-9LPjs,6230
|
|
3
|
+
pyhtml2md-1.7.0.dist-info/WHEEL,sha256=9chgXTnQy64NgqUZRxsRIV_VV-XNzOg00AtYXb7VS90,106
|
|
4
|
+
pyhtml2md-1.7.0.dist-info/licenses/COPYING,sha256=X6r9FLs8Wtic3X3Vpf2ktCAtHDuUiQge-Z9vkCRrVnQ,1090
|
|
5
|
+
pyhtml2md-1.7.0.dist-info/RECORD,,
|
pyhtml2md.cp311-win_amd64.pyd
CHANGED
|
Binary file
|
pyhtml2md-1.5.3.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
pyhtml2md.cp311-win_amd64.pyd,sha256=6rxM2x1oKX0g4cKFStlmA03_oZ-hClUZ0FS2G3-IS6g,226304
|
|
2
|
-
pyhtml2md-1.5.3.dist-info/COPYING,sha256=X6r9FLs8Wtic3X3Vpf2ktCAtHDuUiQge-Z9vkCRrVnQ,1090
|
|
3
|
-
pyhtml2md-1.5.3.dist-info/METADATA,sha256=5BCgee-EhB7l4bSMaksvBN5TWW0gI_MbpU4q1CnVy5E,5687
|
|
4
|
-
pyhtml2md-1.5.3.dist-info/WHEEL,sha256=viuncpH_EfvQZWqmP28y3RsBnRoE49Wb1vcMVyR8XUI,102
|
|
5
|
-
pyhtml2md-1.5.3.dist-info/top_level.txt,sha256=d4vONB40a89_yE6DyZVwRy9xotomMIzISHMQ9054QcM,10
|
|
6
|
-
pyhtml2md-1.5.3.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyhtml2md
|
|
File without changes
|