Skip to main content

convert html to markdown

Project description

htm2md is a Python library to convert html to markdown.

Installation

pip install htm2md

Usage

import htm2md

# convert html to markdown
md = htm2md.convert("<p>This is an <a href='https://example.com'>example</a>.</p>")

# output: This is an [example](https://example.com).
print(md)

License

MIT

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

htm2md-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

htm2md-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file htm2md-0.1.0.tar.gz.

File metadata

  • Download URL: htm2md-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.6 Darwin/20.3.0

File hashes

Hashes for htm2md-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2019362e5a0d86340b5c17675803edc0c63efb27e4b1e92e274059862789b195
MD5 43a6c2da012995aab1f3719e0eb51aed
BLAKE2b-256 d464e690f6835c1eca6ba2a99083f3ae9d45ba41f4ac72ee230de7f3e3c68d61

See more details on using hashes here.

File details

Details for the file htm2md-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: htm2md-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.6 Darwin/20.3.0

File hashes

Hashes for htm2md-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daa82ac642544f619eb0c85f2c244fa6e7de6d9545f01adcabda70d7d8313715
MD5 00a2410ca0460571a2b8f94c8a7597b7
BLAKE2b-256 2a4c2102e21ee8007a9632647c2f1d37fd79a7cbc17c9cbfcaca1d37d1eb9ca5

See more details on using hashes here.

Supported by

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