DoryDocs

Mermaid Diagrams

Use fenced code blocks with the mermaid language identifier to render diagrams. Dory automatically detects mermaid syntax and renders it using the Mermaid library.

Syntax:

MDX

```mermaid
flowchart TD
    A[Start] --> B[End]
```

Diagrams#

Any code block tagged mermaid renders as a diagram using the site palette. It re-renders when the theme changes.

```mermaid

Loading diagram...

State Diagram#

Loading diagram...

Git Graph#

Loading diagram...

Pie Chart#

Loading diagram...

Supported Diagram Types#

TypeIdentifierDescription
FlowchartflowchartProcess flows and decision trees
SequencesequenceDiagramInteraction between participants
ClassclassDiagramObject-oriented class structures
StatestateDiagram-v2State machine transitions
ER DiagramerDiagramDatabase entity relationships
Git GraphgitGraphGit branch history
GanttganttProject timelines
Pie ChartpieProportional data

Fullscreen Mode#

Click any rendered diagram to view it fullscreen. This is useful for complex diagrams that are hard to read at the default size.

Note

Mermaid diagrams are lazy-loaded. The first render on a page may take a moment while the Mermaid library initializes.

Was this page helpful?