Installation
pip install markdownify
Usage
Convert some HTML to Markdown:
from markdownify import markdownify as md
md('<b>Yay</b> <a href="http://github.com">GitHub</a>') # > '**Yay** [GitHub](http://github.com)'
Specify tags to exclude (blacklist):
from markdownify import markdownify as md
md('<b>Yay</b> <a href="http://github.com">GitHub</a>', strip=['a']) # > '**Yay** GitHub'
...or specify the tags you want to include (whitelist):
from markdownify import markdownify as md
md('<b>Yay</b> <a href="http://github.com">GitHub</a>', convert=['b']) # > '**Yay** GitHub'
Development
To run tests:
python setup.py test
To lint:
python setup.py lint
Metadata
Release files for markdownify 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| markdownify-0.4.0.tar.gz | 5.5 kB | Details |
Release files / markdownify-0.4.0.tar.gz
| Download URL | markdownify-0.4.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cf4787436527a60fdda3311f29b2894e59c148a3a51835d650a747b70b950e2
|
|
BLAKE2b-256 checksum How to use checksums |
d0f6b07ee31c7e0c4eb858a1f51419c898d374bca8baff423fc8eb44971af5a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |