Markdown rendering for chirp via patitas.
Parse and render Markdown to HTML in templates, routes, and SSE streams. Thin wrapper around patitas with chirp-specific ergonomics.
Basic usage::
from chirp.markdown import register_markdown_filter
app = App()
register_markdown_filter(app)
Then in templates::
{{ content | markdown }}
Rendered markdown is sanitized by default. Usesanitize=Falseonly for
trusted markdown or controlled CMS content where raw HTML is intentional.
Requirespatitas(includes rosettes for syntax highlighting)::
pip install chirp[markdown]
markdown
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
View source · /home/runner/work/chirp/chirp/site/../src/chirp/markdown/__init__.py:1