Skip to Content
Md2Docx logo Md2Docx

mermaidPlugin

Updated 22 Oct 2026

const mermaidPlugin: (options?) => IPlugin

Defined in: index.ts:199

Mermaid plugin for @m2d/core. Detects mermaid, mmd, and mindmap code blocks and converts them to SVG. The resulting SVGs are later rendered as images in DOCX exports.

Parameters

options?

IMermaidPluginOptions

Returns

IPlugin

On this page