Render Mermaid source into an SVG diagram using its declared grammar.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Diagram source is parsed using the grammar selected by its declaration, transformed into an internal graph or sequence model, and rendered to SVG with layout and theme settings. Rendering converts source into a visual artifact but does not execute embedded application code.
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[OK]
B -->|No| D[Cancel]
SVG with Start, Decision, OK, and Cancel nodes
Documentation builds, static-site previews, and SVG snapshot tests render Mermaid source.