Skip to content

mermaid


Function: setConfig() ​

setConfig(conf): MermaidConfig

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

setConfig ​

FunctionDescriptionTypeValues
setSiteConfigSets the siteConfig to desired valuesPut RequestAny Values, except ones in secure array

Notes: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any values found in conf with key found in siteConfig.secure will be replaced with the corresponding siteConfig value.

Parameters ​

conf ​

MermaidConfig

The potential currentConfig

Returns ​

MermaidConfig

The currentConfig merged with the sanitized conf

Opens in MermaidChart.com