Chapter 4: Modifying Configurations with or without Directives
In this chapter, you will learn how to modify the configuration of Mermaid. You will learn about directives, which you can use to modify the configuration of a diagram from within the diagram's code, plus the possibilities of directives and why you might want to use them. You will also learn how to set up a default configuration for all Mermaid diagrams on a website.
Apart from the knowledge on how to apply configuration to Mermaid, you will also gain in-depth knowledge about the different configuration options that are available and understand what can be configured.
In this chapter, we will go through how configuration is managed within Mermaid by covering the following topics:
- What are Directives?
- Using different types of directives
- Different configuration options
- Setting configuration options using initialize