mermaid
.mermaid caption:{String? = null} code:{EvaluableString} -> Node
Content copied to clipboard
Creates a Mermaid diagram.
.mermaid
graph TD
A --> B
B --> C
Content copied to clipboard
Content can also be loaded from a file via read:
.mermaid
.read {path/to/diagram.mmd}
Content copied to clipboard
Return
a new MermaidDiagramFigure node
Parameters
caption
- Optional
- Likely named
optional caption. If a caption is present, the diagram will be numbered as a figure.
code
- Likely a body argument
the Mermaid code of the diagram