Skip to main content

simple and flexible html to markdown python converter

Project description

pyh2m

https://img.shields.io/pypi/v/h2m.svg

simple and flexible html to markdown python converter

  • Free software: MIT license

Usages

h2m.feed('''<h1>Level One Heading</h1>''')

assert h2m.md() == '''# Level One Heading'''

h2m.feed('''<h2>Level Two Heading</h2>''')

assert h2m.md() == '''## Level Two Heading'''

h2m.feed('''<h3>Level Three Heading</h3>''')

assert h2m.md() == '''### Level Three Heading'''

Features

  • 2 levels table convert

  • raw text with <b> <strong> <i> <em>

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.0 (2020-05-22)

  • WIP: super 2 levels table convert

  • WIP: raw text with <b> <strong> <i> <em>

  • Fix: a lot of html convert bug in feed()

0.1.4 (2020-05-20)

  • Fix Table head convert ‘None’.

0.1.2 (2020-05-15)

  • only python 3

0.1.1 (2020-05-15)

  • fix readme

0.1.0 (2020-05-07)

  • First release on PyPI.

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

h2m-0.2.0.tar.gz (25.2 kB view hashes)

Uploaded Source

Built Distribution

h2m-0.2.0-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 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