| title | author | editorType | tags | page_source | ||||
|---|---|---|---|---|---|---|---|---|
Mermaid Syntax Tests |
|
github.com |
|
My playground for experimenting with the Mermaid markup langauge and its rendering capabilities here on GitHub/GFM.
I have implemented these tests using the official [Mermaid Syntax Reference]1.
My immediate interest in learning the syntax is born out of necessity. I am in the process of restructuring my home network LAN by making use of features and hardware that I did not have back when I was setting up my network.
The three rules that I must adhere to:
a) I cannot modify the existing default gateway; b) I cannot make any changes that disturb internet access from the wireless clients that are routed to said gateway.
In response to these constraints, one must not only have a well thought out plan ahead of implementation but also be thourough in the testing of new feawtures in respect to the existing network. Mermaid syntax is perfect for this task!
My aim is simple -- I am producing a flow chart like so:
- [Source: YouTube Channel]2
graph TD;
sw2.WAN0-->gw1.lan;
sw2.LAN2-->ap3.home;
sw2.LAN4-->xxx;
graph TD;
ap3.WAN0-->sw2.WAN0
ap3.LAN1-->tpsw1.MGMT-139
info
erDiagram
CUSTOMER }|..|{ DELIVERY-ADDRESS : has
CUSTOMER ||--o{ ORDER : places
CUSTOMER ||--o{ INVOICE : "liable for"
DELIVERY-ADDRESS ||--o{ ORDER : receives
INVOICE ||--|{ ORDER : covers
ORDER ||--|{ ORDER-ITEM : includes
PRODUCT-CATEGORY ||--|{ PRODUCT : contains
PRODUCT ||--o{ ORDER-ITEM : "ordered in"
---
title: Frontmatter Example
displayMode: compact
config:
theme: forest
gantt:
useWidth: 400
compact: true
---
gantt
section Waffle
Iron : 1982, 3y
House : 1986, 3y
TB- Top to bottomTD- Top-down/ same as top to bottomBT- Bottom to topRL- Right to leftLR- Left to right
---
config:
layout: elk
look: classic
theme: dark
---
flowchart TB
A[Start] --> B{Decision}
B -->|Yes| C[Continue]
B -->|No| D[Stop]
---
config:
flowchart:
htmlLabels: false
---
flowchart TD
markdown["`sw2`"]
newLines["`WAN0
LAN1
LAN2
LAN3
LAN4-->MGMT`"]
markdown --> newLines
sw2.WAN0-->gw1.lan
---
config:
flowchart:
htmlLabels: false
---
flowchart LR
markdown["`sw2`"]
newLines["`WAN0
LAN1
LAN2
LAN3
LAN4-->MGMT`"]
markdown --> newLines
sw2.WAN0-->gw1.lan
flowchart LR
id1(This is the text in the box)
flowchart LR
id1([This is the text in the box])
flowchart LR
id1[[This is the text in the box]]
flowchart LR
id1[(Database)]
flowchart LR
id1((This is the text in the circle))
flowchart LR
id1>This is the text in the box]
flowchart TD
id1(((This is the text in the circle)))
