markdown-it-py

4.0.0 · active · verified Sat Mar 28

markdown-it-py is a Python port of the popular markdown-it library, providing fast and extensible Markdown parsing with full CommonMark compliance. The current version is 4.0.0, released in August 2025, with a release cadence of approximately one major version per year.

Warnings

Install

Imports

Quickstart

This example demonstrates how to convert a Markdown string to HTML using markdown-it-py.

from markdown_it import MarkdownIt

md = MarkdownIt()
text = "# Hello World\n\nThis is a paragraph with **bold** and *italic* text."
html = md.render(text)
print(html)

view raw JSON →