Repository navigation
Mermaid Flowcharts
hp-1e edited this page Dec 2, 2026
·
1 revision
Language: English | 中文
Quest Markdown includes a built-in native renderer for mermaid flowchart code blocks inside external .md documents — rendered offline as crisp anti-aliased graphics directly inside FTB Quests.
```mermaid
flowchart LR
Start([Start Crafting]) --> Check{Materials Ready?}
Check -->|Yes| Craft[Craft Core]
Check -->|No| Gather[Mine Ores]
Gather -.-> Check
subgraph Advanced Stage
Craft ==> Upgrade[Energize & Upgrade]
Upgrade --> Done((Quest Complete))
end
```Start the block with flowchart <DIR> or graph <DIR>:
-
LR— Left to Right -
RL— Right to Left -
TD/TB— Top to Bottom -
BT— Bottom to Top
| Syntax | Shape |
|---|---|
A[Label] |
Rectangle |
A(Label) |
Rounded rectangle |
A([Label]) |
Stadium / Pill |
A{Label} |
Diamond (decision) |
A((Label)) |
Circle |
| Syntax | Style |
|---|---|
A --> B |
Solid arrow |
A -.-> B |
Dashed arrow (great for loop-backs) |
A ==> B |
Thick highlighted arrow |
A --- B |
Line without arrow |
A -->|Label| B or A -- Label --> B
|
Labeled edge |
Group related nodes inside a dashed container with a title:
subgraph Phase Title
NodeA --> NodeB
end