Replies: 3 comments 1 reply
-
I found another condition.
Note that if there is at least one Mermaid code block without
Instead of defining Is there any other way to do this? |
Beta Was this translation helpful? Give feedback.
-
I was excited to try mermaid in docsy but it does not seem to work. I cloned the docsy repo and tried the mermaid code but no luck. I am running hugo version: hugo v0.120.3-a4892a07b41b7b3f1f143140ee4ec0a9a5cf3970+extended |
Beta Was this translation helpful? Give feedback.
-
Was struggling with per-diagram themeVariables and found this comment, led me to the right place for figuring out why that was broken. |
Beta Was this translation helpful? Give feedback.
-
Following this document and #1588, in Hugo v0.119.0, I wrote a Mermaid code block in markdown with no
[params.mermaid]
section in Hugo.config, but it is not rendered as a diagram.I examined Hugo's output and found the following.
<script src="...mermaid.min.js"...>
output by scripts.html l.81 was correct.Please let me know how to address this issue.
Footnotes
function(e) { var t, n, o, s = !1; if (e(".mermaid").length > 0 && (s = !0), !s) { mermaid.initialize({ startOnLoad: !1 }); return } o = { enable: !1 }, t = function(e, n) { var s = {}; for (const o in e) { const i = o.toLowerCase(); e.hasOwnProperty(o) && n.hasOwnProperty(i) && (typeof e[o] == "object" ? s[o] = t(e[o], n[i]) : s[o] = n[i]) } return s } , n = t(mermaid.mermaidAPI.defaultConfig, o), n.startOnLoad = !0, mermaid.initialize(n) }(jQuery)
↩Beta Was this translation helpful? Give feedback.
All reactions