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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file html2md-0.1.7.tar.gz.

File metadata

  • Download URL: html2md-0.1.7.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for html2md-0.1.7.tar.gz
Algorithm Hash digest
SHA256 d5deaab7c15271c12494df22c4f6566a93ea3c0649b7849e6f6c2d3982d7e65f
MD5 9faf9fb6b103fa6e6ed727ed0b4c6270
BLAKE2b-256 244e4aa7df72a6d23bdfc83eaf93f99c67acc7a5d42efe24f8dfb8bc9d002650

See more details on using hashes here.

File details

Details for the file html2md-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: html2md-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for html2md-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3542121ade2e99b1c9fe07a2a7107b87a72509a93f5f0b7ea8cf16ee5dace9
MD5 4b04d57f072af9fb4be3dcc5704ed053
BLAKE2b-256 a6f7da924c46a144c78d6665924bb8a1fbfccb4dca7a2e9e2e0f827b82d81295

See more details on using hashes here.

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