Color mode

図表

Mermaid (Pele):mermaid-pele

ソース

md
```mermaid
flowchart LR
  A[Note] --> B{Published?}
  B -->|yes| C[Site]
  B -->|no| D[Draft]
```

実行例

Diagram source
text
flowchart LR
  A[Note] --> B{Published?}
  B -->|yes| C[Site]
  B -->|no| D[Draft]

Mermaid(headless browser):mermaid

mermaid プラグインは同じ mermaid フェンスをビルド時に headless browser で SVG に変換します。このサイトでは Chromium を必要としない Mermaid (Pele) を使っています。

D2:d2

ソース

md
```d2
site: Riebeckite
content -> build -> deploy
```

実行例

Diagram source
text
site: Riebeckite
content -> build -> deploy

Graphviz / DOT:graphviz

ソース

md
```dot
digraph G {
  notes -> pages;
  pages -> html;
}
```

実行例

Diagram source
text
digraph G {
  notes -> pages;
  pages -> html;
}

Chart.js:chartjs

ソース

md
```chart
{
  "type": "bar",
  "data": {
    "labels": ["Mon", "Tue", "Wed"],
    "datasets": [{ "label": "Visits", "data": [12, 19, 8] }]
  }
}
```

実行例

Diagram source
text
{
  "type": "bar",
  "data": {
    "labels": ["Mon", "Tue", "Wed"],
    "datasets": [{ "label": "Visits", "data": [12, 19, 8] }]
  }
}

Vega-Lite:vega-lite

ソース

md
```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" }
  }
}
```

実行例

Revenue
Vega-Lite spec
text
{
  "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

ソース

md
```wavedrom
{ "signal": [
  { "name": "clk", "wave": "p......" },
  { "name": "bus", "wave": "x.34.5x", "data": "head body tail" }
] }
```

実行例

WaveJSON source
text
{ "signal": [
  { "name": "clk", "wave": "p......" },
  { "name": "bus", "wave": "x.34.5x", "data": "head body tail" }
] }

Markmap:markmap

ソース

md
```markmap
# Project
 
## Design
 
### Notation
### Rendering
 
## Delivery
```

実行例

Markdown source
text
# Project
 
## Design
 
### Notation
### Rendering
 
## Delivery

Marp slides:marp

ソース

md
```marp title="Intro deck"
# First slide
 
- a bullet
 
---
 
# Second slide
```

実行例

First slide

  • a bullet

Second slide

Marp source
text
# First slide
 
- a bullet
 
---
 
# Second slide

Maps:map

静的な fallback を先に表示し、JavaScript が有効な環境では interactive map に拡張します。

ソース

md
```map
center: 35.6812, 139.7671
zoom: 13
label: Tokyo Station
markers:
  - 35.6812, 139.7671 | Tokyo Station
  - 35.6586, 139.7454 | Tokyo Tower
```

実行例

Tokyo Station

Tokyo Station

© OpenStreetMap contributors

Map source
text
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

Build 時に inline SVG として生成します。

ソース

md
```qr
# caption: Project page
https://example.com/
```

実行例

Project pagehttps://example.com/

PlantUML:plantuml

図はビルド時に PlantUML サーバーの画像 URL へ変換されます。表示にはそのサーバーへ到達できる必要があります。

ソース

md
```plantuml
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml
```

実行例

PlantUML diagram
Diagram source
text
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml

Canvas:canvas

JSON Canvas をコードフェンスへ直接書くか、![[diagram.canvas]] で Canvas ファイルを埋め込みます。

ソース

md
```canvas
{
  "nodes": [
    { "id": "note", "type": "text", "x": 0, "y": 0, "width": 240, "height": 100, "text": "Note" }
  ],
  "edges": []
}
```

実行例

Canvas nodes and edges
  • text note — Note

Powered by Riebeckite

Local Graph

Nearby Notes