About Mermaid
Material in Courses: Info3 Tags: Design Tools: Hugo MermaidMermaid renders diagrams from simple markdown code. It can be used
- via integrating the available js library (yarn add mermaid),
- online via Mermaid-Live,
- is available in Github markdown files (and others)
- and can be easily integrated into hugo1
Here are some examples taken from Mermaid Live:
stateDiagram-v2 [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
flowchart TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[fa:fa-car Car]
stateDiagram-v2 [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]
Flowchart Cheatsheet
flowchart TD A[Start] --> B{Is it?} B -->|Yes| C[OK] C --> D[Rethink] D --> B B ---->|No| E[End] id1>This is the text in the box] id2{{This is the text in the box}}
themes/greenpage/layouts/_default/_markup/ ↩︎