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

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.