simple and flexible html to markdown python converter
Project description
pyh2m
simple and flexible html to markdown python converter
Free software: MIT license
Usages
h2m.feed('''<h1>Level One Heading</h1>''')
assert h2m.md() == '''# Level One Heading'''
h2m.feed('''<h2>Level Two Heading</h2>''')
assert h2m.md() == '''## Level Two Heading'''
h2m.feed('''<h3>Level Three Heading</h3>''')
assert h2m.md() == '''### Level Three Heading'''
Features
2 levels table convert
raw text with <b> <strong> <i> <em>
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.0 (2020-05-22)
WIP: super 2 levels table convert
WIP: raw text with <b> <strong> <i> <em>
Fix: a lot of html convert bug in feed()
0.1.4 (2020-05-20)
Fix Table head convert ‘None’.
0.1.2 (2020-05-15)
only python 3
0.1.1 (2020-05-15)
fix readme
0.1.0 (2020-05-07)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h2m-0.2.0.tar.gz.
File metadata
- Download URL: h2m-0.2.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b95b8dc044bf459e23dd857272b67ecfa5aecdd1c8ec50a505003d3e8d5b56ea
|
|
| MD5 |
598e6886af04b22aa23c8ad0f7b88f81
|
|
| BLAKE2b-256 |
5a87f70a651eb120ad7361135b194c306cfaaf3ad4070577cbad4749bcb96315
|
File details
Details for the file h2m-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: h2m-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1c1b6f25b4e0fb269ea6cd743dea611d212f232fdd56ea64c7a58aa9db3682e
|
|
| MD5 |
65ad2d1e5691e2dc9d7ce5f3044a2e16
|
|
| BLAKE2b-256 |
9101465a95a202a0665f3328e0e4e99fe4a1602c43a14e09337f1c8d4cb44d47
|