IMermaidNodePluginOptions
Updated 5 min ago
Defined in: packages/mermaid-node/src/mermaid-node.ts:20
Properties
cache?
optional cache?: Record<string, Promise<unknown>>
Defined in: packages/mermaid-node/src/mermaid-node.ts:40
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:43
Configure caching
fixMermaid?
optional fixMermaid?: (mermaidCode, error) => string
Defined in: packages/mermaid-node/src/mermaid-node.ts:35
Optional fixer function to repair invalid Mermaid code before retrying render.
Parameters
mermaidCode
string
error
Error
Returns
string
renderOptions?
optional renderOptions?: Record<string, unknown>
Defined in: packages/mermaid-node/src/mermaid-node.ts:30
Additional render options passed to beautiful-mermaid.
theme?
optional theme?: MermaidTheme
Defined in: packages/mermaid-node/src/mermaid-node.ts:25
Built-in theme name (e.g. 'zinc-light', 'github-light', 'dracula') or custom theme object.
Default
'zinc-light'