mdast2docx logo Md2Docx
Version 1.3.0API DocsInterfaces

IMermaidPluginOptions

Updated 5 min ago

Defined in: index.ts:16

Properties

autoFix?

optional autoFix?: boolean

Defined in: index.ts:36

Whether to automatically attempt best-effort repair of common Mermaid syntax errors (e.g. unquoted labels containing special characters like @, :, /, parentheses).

Default

true

cache?

optional cache?: Record<string, Promise<unknown>>

Defined in: index.ts:41

In-memory cache object, useful for cache sharing across plugins/tabs.

cacheConfig?

optional cacheConfig?: CacheConfigType<RenderResult | undefined>

Defined in: index.ts:44

Configure caching

fixMermaid?

optional fixMermaid?: (mermaidCode, error) => string

Defined in: index.ts:29

Optional fixer function to repair invalid Mermaid code before retrying render.

Parameters

mermaidCode

string

error

Error

Returns

string

maxAgeMinutes?

optional maxAgeMinutes?: number

Defined in: index.ts:47

Clean up the entries that are not used for following minutes.

Default

30 * 24 * 60 -- that is 30 days

mermaidConfig?

optional mermaidConfig?: MermaidConfig

Defined in: index.ts:24

Options for configuring Mermaid rendering.

Pass a partial MermaidConfig object to customize behavior. Refer to the Mermaid documentation for full configuration options:

See

https://mermaid.js.org/configuration.html

On this page