Get Started

Install Patitas and parse your first Markdown document

1 min read 164 words

Install

pip install patitas

Requires Python 3.14 or later. See installation for alternative methods.

Parse Markdown

from patitas import parse, render

# Parse to typed AST
doc = parse("# Hello **World**")

# Render to HTML
html = render(doc, source="# Hello **World**")
print(html)
# Output: <h1>Hello <strong>World</strong></h1>

All-in-One

from patitas import Markdown

md = Markdown()
html = md("# Hello **World**")
print(html)
# Output: <h1>Hello <strong>World</strong></h1>

What's Next?