mermaid

.mermaid caption:{String? = null}
ref:{String? = null}
code:{EvaluableString}
-> <Error class: unknown class>

Creates a Mermaid diagram.

If either caption or ref is set, the diagram will be numbered as a figure.

.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 Figure node

Parameters

caption

optional caption

ref

optional ID for cross-referencing via ref

code

the Mermaid code of the diagram