Skip to content

mermaid


Function: setConfig()

setConfig(conf): MermaidConfig

Defined in: packages/mermaid/src/config.ts:106

Updates the currentConfig with the provided conf after sanitization.

Parameters

conf

MermaidConfig

The potential currentConfig

Returns

MermaidConfig

The currentConfig merged with the sanitized conf

Deprecated

Any changes to the currentConfig would be overwritten by the next call to addDirective or reset.

Opens in mermaid.ai