Skip to main content

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

Metadata

Release files for md2html-python 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for md2html-python 1.0.2
File Size Uploaded
md2html_python-1.0.2.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for md2html-python 1.0.2
File Interpreter ABI Platform
md2html_python-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / md2html_python-1.0.2.tar.gz

Download URL md2html_python-1.0.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2e91d1c7e328df0aaef85a1d83b5018e4cca220ce680e8d0663e33368e9f577c
BLAKE2b-256 checksum
How to use checksums
a78c738d90150cf8f363f9dc3ec7a23ed93ea858c8c4b77bb702678a50e7f782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / md2html_python-1.0.2-py3-none-any.whl

Download URL md2html_python-1.0.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01e4fca7430ec756364cac9f48aa83a3e764eb0a4dc59cdbe3434990f7d50088
BLAKE2b-256 checksum
How to use checksums
afb754aa406e17088a65c7c30d9fa8e83728ba8e8f8d490c067598d8645c3875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page