Editing and Formatting
Mermaid
Generate diagrams via code
Mermaid lets you create diagrams and visualizations using text-based descriptions. From flowcharts to sequence diagrams, Mermaid transforms simple text into professional diagrams right within your notes.
Creating a Mermaid Diagram
- Slash command: Type
/mermaidand press Enter - Code block: Create a code block and set the language to
mermaid - Markdown: Use triple backticks with
mermaidas the language - Keyboard Shortcut: Use
Cmd/Ctrl + Shift + Mto add a block with an example.
Supported Diagram Types
Example
Basic flowchart with nodes and connections:
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Do this]
B -->|No| D[Do that]
C --> E[End]
D --> ELearn More
For complete Mermaid syntax, advanced features, and additional diagram types, visit the official Mermaid documentation.