Skip to main content

Module mkdocs_html_markdown

Module mkdocs_html_markdown 

Source
Expand description

MkDocs HTML with markdown attribute detection

Detects HTML elements (primarily divs) with the markdown attribute, which tells MkDocs/Python-Markdown to process the content as Markdown.

Common patterns:

  • <div class="grid cards" markdown> - Grid cards
  • <div markdown="1"> - Explicit markdown processing
  • <div markdown="block"> - Block-level markdown

Structsยง

MarkdownHtmlTracker
Track state for markdown HTML block parsing