Contents

Warning

THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.

Please edit the corresponding file in /packages/mermaid/src/docs/config/setup/config/functions/setConfig.md.

mermaid


Function: setConfig()

setConfig(conf): MermaidConfig

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

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.