Skip to content

Mermaid Flowcharts

hp-1e edited this page Dec 2, 2026 · 1 revision

Mermaid Flowcharts

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.

Basic Example

```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
```

Supported Syntax

Directions

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

Node Shapes

Syntax Shape
A[Label] Rectangle
A(Label) Rounded rectangle
A([Label]) Stadium / Pill
A{Label} Diamond (decision)
A((Label)) Circle

Edges & Labels

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

Subgraphs

Group related nodes inside a dashed container with a title:

subgraph Phase Title
    NodeA --> NodeB
end
Loading

Clone this wiki locally