Skip to content

RunOptions

Unofficial

Options for running Mermaid rendering on existing DOM elements.

Import:

import type { RunOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface RunOptions

Properties

PropertyTypeDescription
nodes?ArrayLike<HTMLElement>DOM nodes to render.
querySelector?stringCSS selector for elements to render.
suppressErrors?booleanWhether to suppress rendering errors.

Methods

MethodReturnsDescription
postRenderCallback(id)unknownCallback invoked after each diagram is rendered.