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
| Option | Value | Effect |
|---|---|---|
excalidraw | flag or boolean literal | Switches to Excalidraw mode |
no-excalidraw | flag | Forces Mermaid.js |
mermaidjs or mermaid | flag | Forces Mermaid.js |
engine or render-engine | mermaidjs or excalidraw | Explicit renderer selection |
theme | auto default dark forest neutral base | Per-diagram theme override |
sketch | boolean literal | Enables or disables sketch mode |
no-sketch | flag | Disables sketch mode |
font-family | string | Standard font family override |
sketch-font | string | Sketch font family override |
min-height or diagram-min-height | CSS size literal | Per-diagram minimum height |
start-on-load | boolean literal | Excalidraw conversion flag |
flowchart-curve | linear or basis | Excalidraw flowchart curve |
font-size | CSS size literal | Excalidraw conversion font size |
max-edges | number | Excalidraw edge limit |
max-text-size | number | Excalidraw text limit |
Notes worth remembering
- Unknown options are ignored quietly
sketch-fontimplies sketch mode once a value is present- Excalidraw-specific options are stored even when the renderer later switches back