Mermaid viewer
How to use
Type a Mermaid diagram on the left, or load a sample. The preview updates as you type. Syntax errors name the line when Mermaid reports one, and the last valid diagram stays visible. Download the diagram as SVG or as a 2× PNG. Light and dark follow your system colour scheme. Nothing is stored or sent anywhere.
About
This page bundles the MIT mermaid library (version 12.3.0) and
loads it only here, as its own script chunk. It is never requested
from a CDN. Mermaid runs with
startOnLoad off, securityLevel set to
strict, and HTML labels off so diagrams use SVG text
(which also keeps PNG export from being tainted).
click lines are removed before rendering, and the SVG
is cleaned before it is shown. A diagram’s
%%{init}%% directive cannot loosen those settings.
Nothing is stored or sent anywhere.