Skip to main content

HTML to Markdown converter.

Project description

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.

Project details


Download files

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

Source Distribution

html2md-0.1.7.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

html2md-0.1.7-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page