Since the following change has been applied, some previously working Mermaid diagrams report "syntax error":
But nothing has changed in the diagrams and the live Mermaid editor are fine with the Mermaid code.
I believe that the problem stems from the decision to render the code block as a <div> rather than <pre>:
|
<div class="mermaid"> |
|
{{- .Inner | safeHTML }} |
|
</div> |
Ok, after some digging, I've found that <pre> is _required, see Requirements for the Mermaid API:
References:
/cc @stephanlachnit @deining
Since the following change has been applied, some previously working Mermaid diagrams report "syntax error":
But nothing has changed in the diagrams and the live Mermaid editor are fine with the Mermaid code.
I believe that the problem stems from the decision to render the code block as a
<div>rather than<pre>:docsy/layouts/_default/_markup/render-codeblock-mermaid.html
Lines 3 to 5 in 26d4d11
Ok, after some digging, I've found that
<pre>is _required, see Requirements for the Mermaid API:References:
/cc @stephanlachnit @deining