-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mermaid diagrams fail to render #1450
Labels
bug
Something isn't working
Comments
Oh, I forgot to mention that the |
Have a look at yesterday's commit to the hugDoc's repo: This commit does exactly does what you request: replacing From the commit message:
Side note: hugoDocs are using ESM import for mermaid now: |
Oh great! Thanks for that reference. |
deining
added a commit
to deining/docsy
that referenced
this issue
Mar 1, 2023
deining
added a commit
to deining/docsy
that referenced
this issue
Mar 2, 2023
chalin
pushed a commit
to deining/docsy
that referenced
this issue
Mar 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: