Skip to content

Interface: RunOptions

mermaid.RunOptions

Properties

nodes

Optional nodes: ArrayLike<HTMLElement>

The nodes to render. If this is set, querySelector will be ignored.

Defined in

packages/mermaid/src/mermaid.ts:49


postRenderCallback

Optional postRenderCallback: (id: string) => unknown

A callback to call after each diagram is rendered.

Type declaration

▸ (id): unknown

Parameters
NameType
idstring
Returns

unknown

Defined in

packages/mermaid/src/mermaid.ts:53


querySelector

Optional querySelector: string

The query selector to use when finding elements to render. Default: ".mermaid".

Defined in

packages/mermaid/src/mermaid.ts:45


suppressErrors

Optional suppressErrors: boolean

If true, errors will be logged to the console, but not thrown. Default: false

Defined in

packages/mermaid/src/mermaid.ts:57