Skip to content

Instantly share code, notes, and snippets.

@somahargitai
Last active April 14, 2023 16:12
Show Gist options
  • Save somahargitai/c970ff9161ee769c08814b4fa463dced to your computer and use it in GitHub Desktop.
Save somahargitai/c970ff9161ee769c08814b4fa463dced to your computer and use it in GitHub Desktop.
Mermaid Cheat Sheet

cheatsheet list

Mermaid Cheatsheet

Vertical

 flowchart TD 
    start-- through --> second
    second -- through again --> third
Loading

Long horizontal flow chart

sequenceDiagram
    participant First
    participant Second 
    participant Third
    participant 4th
    participant 5th
    participant 6th
    participant last
    First->> Second : Some text from first
    Second -->> Second : Circular thing
    loop get next
    5th ->> Second : loop
     Note right of 5th: some note thing
    5th ->> 4th : store 4th
    end
    
    loop another loop
         5th->>4th: get last4th 
         5th ->>6th: save 6th
         Note right of 5th: last note
    end
    last--> 5th : ...
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment