pyhtml2md 1.5.3__pp39-pypy39_pp73-win_amd64.whl → 1.7.0__pp39-pypy39_pp73-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.

@@ -1,123 +1,135 @@
1
- Metadata-Version: 2.1
2
- Name: pyhtml2md
3
- Version: 1.5.3
4
- Summary: Transform your HTML into clean, easy-to-read markdown with pyhtml2md.
5
- Home-page: https://github.com/tim-gromeyer/html2md
6
- Author: Tim Gromeyer
7
- Author-email: sakul8826@gmail.com
8
- Requires-Python: >=3.7
9
- Description-Content-Type: text/markdown
10
- License-File: COPYING
11
- Provides-Extra: test
12
- Requires-Dist: pytest >=6.0 ; extra == 'test'
13
-
14
- # pyhtml2md
15
-
16
- 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.
17
-
18
- <div class="hidable-toc">
19
-
20
- - [Installation](#installation)
21
- - [Basic usage](#basic-usage)
22
- - [Advanced usage](#advanced-usage)
23
- - [Supported Tags](#supported-tags)
24
- - [License](#license)
25
-
26
- </div>
27
-
28
- <div id="doxygen-toc" style="visibility:hidden">
29
-
30
- [TOC]
31
-
32
- </div>
33
-
34
-
35
- ## Installation
36
-
37
- You can install using pip:
38
-
39
- ```bash
40
- pip3 install pyhtml2md
41
- ```
42
-
43
- ## Basic usage
44
-
45
- Here is an example of how to use the pyhtml2md to convert HTML to markdown:
46
-
47
- ```python
48
- import pyhtml2md
49
-
50
- markdown = pyhtml2md.convert("<h1>Hello, world!</h1>")
51
- print(markdown)
52
- ```
53
-
54
- The `convert` function takes an HTML string as input and returns a markdown string.
55
-
56
- ## Advanced usage
57
-
58
- pyhtml2md provides a `Options` class to customize the generation process.
59
- You can find all information on the c++ [documentation](https://tim-gromeyer.github.io/html2md/index.html)
60
-
61
- Here is an example:
62
-
63
- ```python
64
- import pyhtml2md
65
-
66
- options = pyhtml2md.Options()
67
- options.splitLines = False
68
-
69
- converter = pyhtml2md.Converter("<h1>Hello Python!</h1>", options)
70
- markdown = converter.convert()
71
- print(markdown)
72
- print(converter.ok())
73
- ```
74
-
75
- ## Supported Tags
76
-
77
- pyhtml2md supports the following HTML tags:
78
-
79
- | Tag | Description | Comment |
80
- |--------------|--------------------|-----------------------------------------------------|
81
- | `a` | Anchor or link | Supports the `href`, `name` and `title` attributes. |
82
- | `b` | Bold | |
83
- | `blockquote` | Indented paragraph | |
84
- | `br` | Line break | |
85
- | `cite` | Inline citation | Same as `i`. |
86
- | `code` | Code | |
87
- | `dd` | Definition data | |
88
- | `del` | Strikethrough | |
89
- | `dfn` | Definition | Same as `i`. |
90
- | `div` | Document division | |
91
- | `em` | Emphasized | Same as `i`. |
92
- | `h1` | Level 1 heading | |
93
- | `h2` | Level 2 heading | |
94
- | `h3` | Level 3 heading | |
95
- | `h4` | Level 4 heading | |
96
- | `h5` | Level 5 heading | |
97
- | `h6` | Level 6 heading | |
98
- | `head` | Document header | Ignored. |
99
- | `hr` | Horizontal line | |
100
- | `i` | Italic | |
101
- | `img` | Image | Supports `src`, `alt`, `title` attributes. |
102
- | `li` | List item | |
103
- | `meta` | Meta-information | Ignored. |
104
- | `ol` | Ordered list | |
105
- | `p` | Paragraph | |
106
- | `pre` | Preformatted text | Works only with `code`. |
107
- | `s` | Strikethrough | Same as `del`. |
108
- | `span` | Grouped elements | Does nothing. |
109
- | `strong` | Strong | Same as `b`. |
110
- | `table` | Table | Tables are formatted! |
111
- | `tbody` | Table body | Does nothing. |
112
- | `td` | Table data cell | Uses `align` from `th`. |
113
- | `tfoot` | Table footer | Does nothing. |
114
- | `th` | Table header cell | Supports the `align` attribute. |
115
- | `thead` | Table header | Does nothing. |
116
- | `title` | Document title | Same as `h1`. |
117
- | `tr` | Table row | |
118
- | `u` | Underlined | Uses HTML. |
119
- | `ul` | Unordered list | |
120
-
121
- ## License
122
-
123
- pyhtml2md is licensed under [The MIT License (MIT)](https://opensource.org/licenses/MIT)
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.pypy39-pp73-win_amd64.pyd,sha256=imU-X7oCNu3QC2fsJKUH9oLaOad7GWFdbf7vZki63Ps,245760
2
+ pyhtml2md-1.7.0.dist-info/METADATA,sha256=QFm0J0J6iySK6jo7eaUIbkaplkimrJsfEwJvv-9LPjs,6230
3
+ pyhtml2md-1.7.0.dist-info/WHEEL,sha256=TOP5uw5P6UM_8nLII-TWQdL0IIsvxiRvSSpsHxq1kKo,111
4
+ pyhtml2md-1.7.0.dist-info/licenses/COPYING,sha256=X6r9FLs8Wtic3X3Vpf2ktCAtHDuUiQge-Z9vkCRrVnQ,1090
5
+ pyhtml2md-1.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.1)
2
+ Generator: scikit-build-core 0.11.2
3
3
  Root-Is-Purelib: false
4
4
  Tag: pp39-pypy39_pp73-win_amd64
5
5
 
Binary file
@@ -1,6 +0,0 @@
1
- pyhtml2md.pypy39-pp73-win_amd64.pyd,sha256=Rzva7KPnkFWjbb0zfVzvoAg9Vigzl6DiIZRc76JmY8Q,222208
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=MX0Ge1HiSACxdnWjigikfXJXNP5PlQ_5Qcrim3pomvo,107
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