Setting configuration options using initialize
So far, we have learned about how directives are used by diagram authors to modify configurations when they're writing diagrams. This changes the configuration for individual diagrams. Now, we will look at how to update the default configuration that Mermaid uses for all diagrams on a website.
If we take a step back and look at the configuration handling that's available in Mermaid, we will see that it has three levels. Understanding these levels makes integrating Mermaid with a website or any other system/tool much easier. These three levels of configuration are as follows:
- The default configuration: This is a set of configuration values that will produce nice diagrams in most situations. There is generally no need to change the default configuration.
- The site configuration: This is Mermaid's default configuration, but with a set of site-specific updates applied to it. The site integrator – the person...