html2md
HTML to Markdown converter
Installation
pip install -U html2md
Usage
As a command line tool:
# To convert a file.
html2md examples/hello.html
# To convert from stdin.
cat examples/hello.html | html2md
From a Python script:
import html2md
html = '''
<h1>Header</h1>
<b><i>Hello</i></b> from <code>html2md</code>
<pre class="py"><code>
print('Hello')
</code></pre>
'''
md = html2md.convert(html)
print(md)
Contributing
Contributions are welcome! For instructions on how to contribute, please check the Contribution guide.
Release files for html2md 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| html2md-0.1.7.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| html2md-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / html2md-0.1.7.tar.gz
| Download URL | html2md-0.1.7.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5deaab7c15271c12494df22c4f6566a93ea3c0649b7849e6f6c2d3982d7e65f
|
|
BLAKE2b-256 checksum How to use checksums |
244e4aa7df72a6d23bdfc83eaf93f99c67acc7a5d42efe24f8dfb8bc9d002650
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / html2md-0.1.7-py3-none-any.whl
| Download URL | html2md-0.1.7-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b3542121ade2e99b1c9fe07a2a7107b87a72509a93f5f0b7ea8cf16ee5dace9
|
|
BLAKE2b-256 checksum How to use checksums |
a6f7da924c46a144c78d6665924bb8a1fbfccb4dca7a2e9e2e0f827b82d81295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|