Skip to content

Fence options

Inline fence options override the global plugin config for one diagram at a time

Syntax

md
```mermaid excalidraw flowchart-curve=basis font-size="18px" min-height="320px"
flowchart LR
  A --> B
```

Supported inline options

OptionValueEffect
excalidrawflag or boolean literalSwitches to Excalidraw mode
no-excalidrawflagForces Mermaid.js
mermaidjs or mermaidflagForces Mermaid.js
engine or render-enginemermaidjs or excalidrawExplicit renderer selection
themeauto default dark forest neutral basePer-diagram theme override
sketchboolean literalEnables or disables sketch mode
no-sketchflagDisables sketch mode
font-familystringStandard font family override
sketch-fontstringSketch font family override
min-height or diagram-min-heightCSS size literalPer-diagram minimum height
start-on-loadboolean literalExcalidraw conversion flag
flowchart-curvelinear or basisExcalidraw flowchart curve
font-sizeCSS size literalExcalidraw conversion font size
max-edgesnumberExcalidraw edge limit
max-text-sizenumberExcalidraw text limit

Notes worth remembering

  • Unknown options are ignored quietly
  • sketch-font implies sketch mode once a value is present
  • Excalidraw-specific options are stored even when the renderer later switches back