Type Mermaid on the left and the diagram draws itself on the right. Your diagram is kept in this browser.
The diagram appears here.
| graph TD | A flowchart, top down; LR goes left to right |
| A[Box] --> B(Round) --> C{Choice} | Shapes, joined by arrows |
| C -->|yes| D | An arrow with a label; --- is a plain line, -.-> dotted, ==> thick |
| subgraph Name … end | A box around a group |
| sequenceDiagram | A->>B: message, B-->>A: reply, Note over A: text |
| classDiagram | Animal <|-- Duck, Duck : +swim() |
| stateDiagram-v2 | [*] --> Still, Still --> Moving : push |
| erDiagram | CUSTOMER ||--o{ ORDER : places |
| gantt | dateFormat YYYY-MM-DD, Task :a1, 2026-01-05, 7d, after a1 |
| pie | "Label" : 42 |
| mindmap | An outline: each idea indented under its parent |
| %% comment | A line Mermaid ignores |
More in Mermaid’s own reference.