IMermaidNodePluginOptions
Updated 22 Oct 2026
Defined in: packages/mermaid-node/src/mermaid-node.ts:24
Properties
cache?
optional cache?: Record<string, Promise<unknown>>
Defined in: packages/mermaid-node/src/mermaid-node.ts:50
In-memory cache object, useful for cache sharing across plugins.
cacheConfig?
optional cacheConfig?: CacheConfigType<RenderResultLike | undefined>
Defined in: packages/mermaid-node/src/mermaid-node.ts:53
Configure caching
fixMermaid?
optional fixMermaid?: (mermaidCode, error) => string
Defined in: packages/mermaid-node/src/mermaid-node.ts:45
Optional fixer function to repair invalid Mermaid code before retrying render.
Parameters
mermaidCode
string
error
Error
Returns
string
renderOptions?
optional renderOptions?: RenderOptions
Defined in: packages/mermaid-node/src/mermaid-node.ts:40
Additional render options passed to beautiful-mermaid (e.g. font, padding, nodeSpacing, layerSpacing, componentSpacing).
theme?
optional theme?: MermaidTheme
Defined in: packages/mermaid-node/src/mermaid-node.ts:29
Built-in theme name (e.g. 'zinc-light', 'zinc-dark', 'github-light', 'github-dark', 'dracula') or custom theme object.
Default
'zinc-light'transparent?
optional transparent?: boolean
Defined in: packages/mermaid-node/src/mermaid-node.ts:35
Whether to render with a transparent background.
Default
true