Configure security level on mermaid to enable anchor links #3812
-
Hi! I'm using mermaid with mkdocs and trying to successfully anchor link from cells. Right now, anchor links go to The solve on the mermaid-side is adding I don't see configuration options beyond the following in the mkdocs documentation (in my
Are there additional yml config options? Or have others been using js to workaround this known mermaid issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's not possible to configure Mermaid.js via I'm not keen on adding more and more configuration options, since this would make things really complicated and error prone. However, we could add the configuration option you mentioned as a default, since MkDocs is a static site generator, so what's going into the site is decided at build time and not by user interaction. Thus, allowing the author to bind click events should be totally fine. PR appreciated. |
Beta Was this translation helpful? Give feedback.
It's not possible to configure Mermaid.js via
mkdocs.yml
, which is initialized here:mkdocs-material/src/assets/javascripts/components/content/code/mermaid/index.ts
Lines 93 to 96 in 55a58da
I'm not keen on adding more and more configuration options, since this would make things really complicated and error prone. However, we could add the configuration option you mentioned as a default, since MkDocs is a static site generator, so what's going into the site is decided at build time and not by user interaction. Thus, allowing the author to bind click events should be totally fine.
PR appreciated.