intro Link to heading

To create diagrams dynamically in an internet browser you can use Mermaid, which is a diagramming and charting tools based on JavaScript and inspired by Markdown text definitions (Woodward & Biagianti, 2022). It has default style, which should be sufficient. But if an adjustment is necessary, e.g. style of the link – the line connecting two nodes, can be modified (Drago, 2023) and also the other features.

flowchart Link to heading

flowchart LR B --> I --> P --> O --> E B(["Begin"]) I[/"Input"/] P["Process"] O[/"Output"/] E(["End"]) linkStyle default stroke:red linkStyle 1 stroke:blue linkStyle 3 stroke:green

code Link to heading

flowchart LR
  B --> I --> P --> O --> E
  
  B(["Begin"])
  I[/"Input"/]
  P["Process"]
  O[/"Output"/]
  E(["End"])
  
  linkStyle default stroke:red
  linkStyle 1 stroke:blue
  linkStyle 3 stroke:green

linkstyle Link to heading

  • default is for all lines between two nodes.
  • n is for (n+1)-th line, since it begins with 0, and override default for the line.
  • 1 is for second line, the line beetween Input and Process elements.
  • 3 is for fourth line, the line between Process and End elements.

limitation Link to heading

  • The linkSyle can not change color of arrow head.
  • There is not any recent information available about it (Greywolf, 2020).

refs Link to heading