Diagrams
Mermaid (Pele) — mermaid-pele
Source
```mermaid
flowchart LR
A[Note] --> B{Published?}
B -->|yes| C[Site]
B -->|no| D[Draft]
```
Rendered
Diagram source
flowchart LR
A[Note] --> B{Published?}
B -->|yes| C[Site]
B -->|no| D[Draft]
Mermaid (headless browser) — mermaid
The mermaid plugin renders the same mermaid fence to SVG with a headless browser at build time. This site uses Mermaid (Pele) instead, so the build does not need Chromium.
D2 — d2
Source
```d2
site: Riebeckite
content -> build -> deploy
```
Rendered
Diagram source
site: Riebeckite
content -> build -> deploy
Graphviz / DOT — graphviz
Source
```dot
digraph G {
notes -> pages;
pages -> html;
}
```
Rendered
Diagram source
digraph G {
notes -> pages;
pages -> html;
}
Chart.js — chartjs
Source
```chart
{
"type": "bar",
"data": {
"labels": ["Mon", "Tue", "Wed"],
"datasets": [{ "label": "Visits", "data": [12, 19, 8] }]
}
}
```
Rendered
Diagram source
{
"type": "bar",
"data": {
"labels": ["Mon", "Tue", "Wed"],
"datasets": [{ "label": "Visits", "data": [12, 19, 8] }]
}
}
Vega-Lite — vega-lite
Source
```vega-lite
{
"title": "Revenue",
"data": { "values": [{ "category": "A", "value": 28 }, { "category": "B", "value": 55 }] },
"mark": "bar",
"encoding": {
"x": { "field": "category", "type": "nominal" },
"y": { "field": "value", "type": "quantitative" }
}
}
```
Rendered
Vega-Lite spec
{
"title": "Revenue",
"data": { "values": [{ "category": "A", "value": 28 }, { "category": "B", "value": 55 }] },
"mark": "bar",
"encoding": {
"x": { "field": "category", "type": "nominal" },
"y": { "field": "value", "type": "quantitative" }
}
}
WaveDrom — wavedrom
Source
```wavedrom
{ "signal": [
{ "name": "clk", "wave": "p......" },
{ "name": "bus", "wave": "x.34.5x", "data": "head body tail" }
] }
```
Rendered
WaveJSON source
{ "signal": [
{ "name": "clk", "wave": "p......" },
{ "name": "bus", "wave": "x.34.5x", "data": "head body tail" }
] }
Markmap — markmap
Source
```markmap
# Project
## Design
### Notation
### Rendering
## Delivery
```
Rendered
Markdown source
# Project
## Design
### Notation
### Rendering
## Delivery
Marp slides — marp
Source
```marp title="Intro deck"
# First slide
- a bullet
---
# Second slide
```
Rendered
First slide
- a bullet
Second slide
Marp source
# First slide
- a bullet
---
# Second slide
Maps — map
A static fallback renders first, then expands to an interactive map where JavaScript is available.
Source
```map
center: 35.6812, 139.7671
zoom: 13
label: Tokyo Station
markers:
- 35.6812, 139.7671 | Tokyo Station
- 35.6586, 139.7454 | Tokyo Tower
```
Rendered
Tokyo Station
© OpenStreetMap contributors
Map source
center: 35.6812, 139.7671
zoom: 13
label: Tokyo Station
markers:
- 35.6812, 139.7671 | Tokyo Station
- 35.6586, 139.7454 | Tokyo Tower
QR codes — qr-code
Generated as inline SVG at build time.
Source
```qr
# caption: Project page
https://example.com/
```
Rendered
PlantUML — plantuml
The diagram becomes an image URL pointing at a PlantUML server at build time. Viewing it requires reaching that server.
Source
```plantuml
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml
```
Rendered
Diagram source
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml
Canvas — canvas
Write JSON Canvas directly in a code fence, or embed a Canvas file with ![[diagram.canvas]].
Source
```canvas
{
"nodes": [
{ "id": "note", "type": "text", "x": 0, "y": 0, "width": 240, "height": 100, "text": "Note" }
],
"edges": []
}
```
Rendered
Note
Canvas nodes and edges
- text
note— Note
Powered by Riebeckite