Skip to main content

Module markdown

Module markdown 

Source
Expand description

Markdown → HTML conversion with syntax highlighting. Uses comrak for GFM markdown and syntect for dual-theme code highlighting.

Structs§

Highlighter
Highlighter with pre-loaded syntax definitions and theme. Outputs semantic CSS classes (hl-keyword, hl-string, etc.) instead of inline styles — colors are controlled via design tokens.

Functions§

render_markdown
Render markdown content to HTML with syntax-highlighted code blocks. Internal links (starting with /) are prefixed with base_path.