Convert markdown-formatted docstring text to HTML using the markdown library. docstring text; if already HTML (starts/ends with angle brackets), it is passed through unchanged.
Returns:
Rendered HTML, wrapped Markup so the Jinja environment’s
Methods
markdown_to_html
markdown_to_html(text: Raw) -> Markup
Convert markdown-formatted docstring text to HTML using the markdown library. docstring text; if already HTML (starts/ends with angle brackets), it is passed through unchanged.
Returns:
Rendered HTML, wrapped Markup so the Jinja environment’s
| Parameter | Type | Description |
|---|---|---|
| text | Raw |
Generated with Flude
Copyright © 2026