RunOptions
Unofficial
Options for running Mermaid rendering on existing DOM elements.
Import:
import type { RunOptions } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface RunOptionsProperties
| Property | Type | Description | |
|---|---|---|---|
| nodes? | ArrayLike<HTMLElement> | DOM nodes to render. | |
| querySelector? | string | CSS selector for elements to render. | |
| suppressErrors? | boolean | Whether to suppress rendering errors. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| postRenderCallback(id) | unknown | Callback invoked after each diagram is rendered. |