mermaid dialogs examples
Mermaid examples Intro Mermaid is a easy way to create easy graphics like flowcharts
For example
flowchart TD start([Start]) –> declare1(Declare variables a, b and c) –> assign1[/Assign a, b and c/] –> condition1{Is a>b?} – False –> condition1_false{Is c>b?} – False –> printb[/Print b/] –> stop([Stop]) condition1_false – True –> printc[/Print c/] –> stop condition1 – True –> condition1_true{Is a>c?} condition1_true – False –> printc condition1_true – True –> printa[/Print a/] –> stop classDef blue fill:#00f,color:#fff classDef blueline stroke:#00f style start fill:#0f0,color:#fff style stop fill:#f00,color:#fff class declare1,assign1,printb,printc,printa blue class condition1,condition1_false,condition1_true blueline Creates the following graph [mermaid] flowchart TD start([Start]) –> declare1(Declare variables a, b and c) –> assign1[/Assign a, b and c/] –> condition1{Is a>b?
2 minutes to read