-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Weird Mermaid requirement for rendering #54
Comments
@brendan-mccoy, thank you for bringing this to my attention. I will look into it within the next day. |
Signed-off-by: weru <[email protected]>
@brendan-mccoy, this should work correctly now. |
I'm having the same issue. Mermaid won't render unless I add "mermaid" somewhere in the text. Was it fixed? |
@vpakg, are you using the mermaid shortcode? |
Hi @onweru, thanks for getting back to me. Here is what my Markdown looks like: ---
title: "Mermaid Diagram example"
weight: 1
---
## Flowchart:
{{< mermaid >}}
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
{{< /mermaid >}} this won't render, but if I add the word |
@vpakg, I took your code as is and it worked alright. I'm on macos 12, using |
Hi @onweru I'm in the exact same version as you for Hugo: |
I have checked all the prerequisites below and I'm yet experiencing a problem
Describe the bug
When I try to use mermaid, it only works if the string "mermaid" is in the document outside of tags.
The above works.
The above doesn't work, and just renders the following text under the title:
pie title Key elements in Product X "Calcium" : 42.96 "Potassium" : 50.05 "Magnesium" : 10.01 "Iron" : 5
I can put the string "mermaid" anywhere and it works, but it doesn't seem this is intentional.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: