Feature
Code & diagrams
Syntax-highlighted code blocks and sanitized Mermaid diagram rendering, without a separate diagramming tool.
- Code blocks get syntax highlighting and support grouped, tabbed code examples for showing the same snippet in multiple languages.
- Mermaid diagrams render directly from a fenced code block — no separate diagram editor or exported image to keep in sync.
- Rendered Mermaid output is sanitized before it's inserted into the page, so a diagram can't become a script-injection vector.
- Code fence metadata (like a filename or highlighted line range) is supported, so a snippet can point a reader at exactly the line that matters.