Mermaid syntax reference

Worked syntax pages for the twenty Mermaid diagram types makesPDF renders — flowcharts and sequence diagrams, class and state diagrams, ER, gantt, pie, gitgraph, xychart, timeline, quadrant, sankey, treemap, mindmap, journey, radar, requirement, C4, kanban and block. Every example is drawn by the same renderer that produces the PDF. Copy one, render it, ship it.

Diagram types

Every page shows the Mermaid source next to the rendered diagram — render any of them straight to PDF on the Markdown tool, or read how diagram blocks work in the Markdown documentation.