Skip to main content

HTML to Markdown converter.

Project description


HTML to Markdown converter


pip install -U html2md


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 = '''
<b><i>Hello</i></b> from <code>html2md</code>
<pre class="py"><code>

md = html2md.convert(html)


Contributions are welcome! For instructions on how to contribute, please check the Contribution guide.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for html2md, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size html2md-0.1.7-py3-none-any.whl (13.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size html2md-0.1.7.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page