Skip to main content

Module markdown

Module markdown 

Source

Constants§

CODE_PRE_CLASS
CSS class on the highlighted <pre> wrapper. Syntect runs in class-based mode (ClassStyle::Spaced): spans carry space-separated, lowercased TextMate scope atoms (e.g. keyword, string, constant numeric) and the colors live in the shipped code.css, theme-aware for both light and dark. There is no embedded syntect theme and no inline style="color:…".

Functions§

comrak_options
The comrak options used across the whole pipeline (GFM + P0 extensions). Single source of truth so the AST pass (Cluster B) and the one-shot render agree.
format_ast
Format an already-parsed (and possibly transformed) AST to HTML with syntect.
render_markdown
Render a markdown body (frontmatter already stripped) to HTML with GFM extensions and server-side syntect syntax highlighting of fenced code.