markdown.renderer

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Core markdown renderer wrapping patitas.

Provides a stateful renderer that can be used directly or registered as a template filter. The interface is designed so that incremental parsing can be added behind…

Core markdown renderer wrapping patitas.

Provides a stateful renderer that can be used directly or registered as a template filter. The interface is designed so that incremental parsing can be added behind it later without changing downstream code.

markdown.renderer

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

Symbols on this page

MarkdownRenderer
class

Render Markdown source to HTML via patitas.

Wrapspatitas.Markdownwith a stable interface that chirp controls. Phase 1 does a full parse+render on every call. Incremental parsing can be layered in later behindrender().

_MarkdownHTMLSanitizer
class
_get_markdown
function
def _get_markdown(*, plugins: list[str] | None, highlight: bool) -> Markdown

Create a patitas Markdown instance, raising a clear error if missing.

Parameters

Name Type Default Description
plugins list[str] | None
highlight bool

View source · /home/runner/work/chirp/chirp/site/../src/chirp/markdown/renderer.py:1