mermaid

.mermaid caption:{String? = null} code:{EvaluableString} -> Node

Creates a Mermaid diagram.

.mermaid
graph TD
A --> B
B --> C

Content can also be loaded from a file via read:

.mermaid
.read {path/to/diagram.mmd}

Return

a new MermaidDiagramFigure node

Parameters

caption

optional caption. If a caption is present, the diagram will be numbered as a figure.

code

the Mermaid code of the diagram