Mermaid blocks
Add a Mermaid block to create diagrams in GitBook using Mermaid syntax
Last updated
Was this helpful?
Add a Mermaid block to create diagrams in GitBook using Mermaid syntax
Mermaid blocks let you create diagrams using the Mermaid syntax.
Use them when you want to show flows, sequences, states, or relationships in a format that's easy to update.
Place your cursor on an empty line and type /.
Click Mermaid in the insert menu.
Enter or paste your Mermaid syntax. GitBook renders the diagram automatically.
You can also click the + to the left of any line in the editor and click Mermaid.
```mermaid
flowchart TD
A[Open the insert palette] --> B[Select Mermaid]
B --> C[Add Mermaid syntax]
C --> D[GitBook renders the diagram]
```GitBook renders code blocks with the mermaid language identifier as native Mermaid blocks.
Last updated
Was this helpful?