Mermaid Diagrams


Mermaid diagrams are useful when a docs page needs to explain flow or ownership boundaries. Nivel includes Mermaid rendering through its MDX and code-block tooling.

MDX
```mermaid
graph LR
    A[Square Rect] -- Link text --> B((Circle))
    A --> C(Round Rect)
    B --> D{Rhombus}
    C --> D
```

Example

MERMAID
Rendering diagram...
graph LR
    A[Square Rect] -- Link text --> B((Circle))
    A --> C(Round Rect)
    B --> D{Rhombus}
    C --> D

When to use diagrams

  • route and alias generation flow
  • resolver pipeline stages
  • consumer-owned versus engine-owned boundaries
  • Vite plugin lifecycle

For the broader MDX transform chain, read MDX Pipeline.