mbolding · Notes

Mermaid diagrams

Type Mermaid on the left and the diagram draws itself on the right. Your diagram is kept in this browser.

The diagram appears here.

Syntax reminders
graph TDA flowchart, top down; LR goes left to right
A[Box] --> B(Round) --> C{Choice}Shapes, joined by arrows
C -->|yes| DAn arrow with a label; --- is a plain line, -.-> dotted, ==> thick
subgraph Name … endA box around a group
sequenceDiagramA->>B: message, B-->>A: reply, Note over A: text
classDiagramAnimal <|-- Duck, Duck : +swim()
stateDiagram-v2[*] --> Still, Still --> Moving : push
erDiagramCUSTOMER ||--o{ ORDER : places
ganttdateFormat YYYY-MM-DD, Task :a1, 2026-01-05, 7d, after a1
pie"Label" : 42
mindmapAn outline: each idea indented under its parent
%% commentA line Mermaid ignores

More in Mermaid’s own reference.