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.
Root-absolute internal links are prefixed with
base_path, and relative links are resolved fromlink_base_url.