Markdown
v1.0.7Updated 20 Jul 2026Themed markdown renderer with GFM tables, KaTeX math, lazy Mermaid (securityLevel:strict), remote-rendered PlantUML SVG, syntax-highlighted code, and task lists. Output is sanitised via DOMPurify.
Preview
Live · 13 stories▸Why this is recommendedmarkdownhtmlcontentgfm+7
Markdown — basic.
- ✓Help / docs surfaces
- ✓Comment / note rendering
- ✓AI / agent streaming response rendering
- ✓Wiki pages
- GFM tables + strikethrough + task lists
- KaTeX inline + block math
- Mermaid diagrams (lazy-loaded, securityLevel:strict)
- PlantUML diagrams (remote SVG)
- Syntax-highlighted code blocks (with copy button)
- Task lists with checkboxes
- Sanitised via DOMPurify (XSS-safe)
- Optional line numbers in code blocks
- format="html": sanitised raw-HTML rendering with themed typography
- i18n labels prop (MarkdownLabels — every built-in string overridable)
- ✕Plain unstyled text (use Typography)
- ✕Form labels (use Label)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
sourceMarkdown source (or an HTML body when format="html")
yesformatInput format — html renders DOMPurify-sanitised markup with themed typography (default markdown)
—lineNumbersShow line numbers in code blocks
—mermaidRender mermaid code blocks (default true)
—plantumlRender plantuml code blocks via the configured server (default true)
—labelsOverride built-in UI strings (copy button + toasts, diagram loading/error fallbacks, heading anchor aria) for i18n
—