Skip to main content

A user-friendly tool for converting Markdown to HTML

Project description

PyPI - Version PyPI - Status

A user-friendly tool for converting Markdown to HTML

Installation

pip install md2html-python

Usage

Use in CMD

md2html --help

md2html --version

md2html input.md -o output.html

md2html input.md -o output.html --styles-css your_styles.css

Use in Python

from md2html.core import MD2HTML

content = '''
# Hello World

This is a test.
'''

md2html = MD2HTML(content)

md2html.convert('output.html')

html = md2html.convert()
print(html)

Generate Pygments CSS

# List all available styles
pygmentize -L styles

# Generate css for given style
pygmentize -S default -f html -a .highlight > pygments.css

Support Features

  • TOC
  • Code block
  • Inline code
  • Latex
  • Table
  • Image as B64
  • Mermaid
  • Checkbox
  • Details
  • Definition
  • Emoji
  • Tabbed

Demo


Thanks

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

md2html_python-1.0.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

md2html_python-1.0.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file md2html_python-1.0.2.tar.gz.

File metadata

  • Download URL: md2html_python-1.0.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for md2html_python-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2e91d1c7e328df0aaef85a1d83b5018e4cca220ce680e8d0663e33368e9f577c
MD5 4bf2c2e7a21b0b0705530caecfa5a55c
BLAKE2b-256 a78c738d90150cf8f363f9dc3ec7a23ed93ea858c8c4b77bb702678a50e7f782

See more details on using hashes here.

File details

Details for the file md2html_python-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: md2html_python-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for md2html_python-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01e4fca7430ec756364cac9f48aa83a3e764eb0a4dc59cdbe3434990f7d50088
MD5 112c4c12ab9c5788bb4c362e8af62b1e
BLAKE2b-256 afb754aa406e17088a65c7c30d9fa8e83728ba8e8f8d490c067598d8645c3875

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