From 2219b54ebe32b2ba7d4159278426180118a1c6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 2 Jul 2021 22:05:35 +0200 Subject: [PATCH] update mermaid docs #5 --- exampleSite/content/shortcodes/mermaid.en.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/shortcodes/mermaid.en.md b/exampleSite/content/shortcodes/mermaid.en.md index 23176b7786..0dbb926718 100644 --- a/exampleSite/content/shortcodes/mermaid.en.md +++ b/exampleSite/content/shortcodes/mermaid.en.md @@ -187,24 +187,22 @@ stateDiagram-v2 ## 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. See [mermaid documentation](http://mermaid-js.github.io/mermaid/getting-started/Setup.html#mermaidapi-configuration-defaults) for all allowed settings. -### Allow HTML in graphs - -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` +### Example ````toml [params] - mermaidInitialize = "{ \"securityLevel\": \"loose\", \"startOnLoad\": true }" + mermaidInitialize = "{ \"theme\": \"dark\" }" ```` or pages frontmatter ````toml +++ -mermaidInitialize = "{ \"securityLevel\": \"loose\", \"startOnLoad\": true }" +mermaidInitialize = "{ \"theme\": \"dark\" }" +++ ````