mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
update mermaid docs #5
This commit is contained in:
parent
6b7779dac5
commit
2219b54ebe
1 changed files with 4 additions and 6 deletions
|
@ -187,24 +187,22 @@ stateDiagram-v2
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
By default, mermaid is configured with default settings. You can customize mermaids default settings for all of your files thru a JSON object in your `config.toml` or override these settings sidewise thru your pages frontmatter.
|
Mermaid is configured with default settings. You can customize mermaids default settings for all of your files thru a JSON object in your `config.toml` or override these settings sidewise thru your pages frontmatter.
|
||||||
|
|
||||||
This JSON object is forwarded into mermaids `mermaid.initialize()` function.
|
This JSON object is forwarded into mermaids `mermaid.initialize()` function.
|
||||||
|
|
||||||
See [mermaid documentation](http://mermaid-js.github.io/mermaid/getting-started/Setup.html#mermaidapi-configuration-defaults) for all allowed settings.
|
See [mermaid documentation](http://mermaid-js.github.io/mermaid/getting-started/Setup.html#mermaidapi-configuration-defaults) for all allowed settings.
|
||||||
|
|
||||||
### Allow HTML in graphs
|
### Example
|
||||||
|
|
||||||
By default newer versions of mermaid disallow HTML in graphs if you are using default settings. To enable this, set the following line in your `config.toml`
|
|
||||||
|
|
||||||
````toml
|
````toml
|
||||||
[params]
|
[params]
|
||||||
mermaidInitialize = "{ \"securityLevel\": \"loose\", \"startOnLoad\": true }"
|
mermaidInitialize = "{ \"theme\": \"dark\" }"
|
||||||
````
|
````
|
||||||
|
|
||||||
or pages frontmatter
|
or pages frontmatter
|
||||||
````toml
|
````toml
|
||||||
+++
|
+++
|
||||||
mermaidInitialize = "{ \"securityLevel\": \"loose\", \"startOnLoad\": true }"
|
mermaidInitialize = "{ \"theme\": \"dark\" }"
|
||||||
+++
|
+++
|
||||||
````
|
````
|
||||||
|
|
Loading…
Reference in a new issue