← All releases

v0.17.0

feature

Mermaid diagram support: set `mermaid = true` and fenced ```mermaid blocks render as diagrams client-side — no shortcode required.

Mermaid diagrams

Set mermaid = true under [build] and fenced ```mermaid code blocks render as Mermaid diagrams — the same syntax Hugo, Zola, and GitHub accept, no shortcode required:

```mermaid
graph TD
  A[Start] --> B{Works?}
  B -->|Yes| C[Ship it]
  B -->|No| A
```

Each block is emitted as <div class="mermaid">…</div>, and a small client-side Mermaid loader is injected only on pages that actually contain a diagram — diagram-free pages have zero overhead. Diagrams render in the browser, so they work with every bundled and custom theme.

With mermaid = false (the default), a ```mermaid block is treated like any other unrecognized language and rendered as a plain code block, so existing sites are unaffected.

Requested in #87.