Diagrams with Mermaid
flowchart LR
A[Write Markdown] --> B{Looks good?}
B -- Yes --> C[Export PDF]
B -- No --> A
sequenceDiagram participant You participant Hashlite You->>Hashlite: Paste Markdown Hashlite-->>You: Live preview
flowchart LR
A[Write Markdown] --> B{Looks good?}
B -- Yes --> C[Export PDF]
B -- No --> A
sequenceDiagram participant You participant Hashlite You->>Hashlite: Paste Markdown Hashlite-->>You: Live preview
Write Mermaid code in a ```mermaid block and see the diagram as you type, next to the rest of your document. Flowcharts, sequence diagrams, class and state diagrams, Gantt charts and more.
Start a code block with ```mermaid and describe the diagram.
The diagram redraws as you type. Syntax errors are shown instead of the diagram.
Save as PDF, or download HTML with the diagram inlined as SVG.
All Mermaid types, including flowchart, sequence, class, state, entity-relationship, Gantt, pie and mindmap.
Yes. Diagrams sit in a normal Markdown document, with headings, lists and tables around them.
Yes. Diagrams follow the colour theme, and printing always uses a light version.