Ox Content

mermaid.ts

Source

transformMermaidStatic

function

Transforms mermaid code blocks in HTML to rendered SVG diagrams. Uses the native Rust NAPI transformMermaid function.

Source

export async function transformMermaidStatic(
  html: string,
  _options?: MermaidOptions,
  ): Promise<string>

Returns

Promise<string> -