Mermaid graphs fail to render #1313
-
I'm trying to get Mermaid graphs to show up on my site by following these directions but, the rendered page just shows it as a regular code block. If I try it per these directions it does work but, I shouldn't have to go that route since it is supposed to be built in now. In my local dev env I'm using:
Any suggestions on what I may be doing wrong would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The user guide refers to the latest version of docsy. However, you are using docsy v0.5.1 and auto activation of mermaid diagrams was introduced after that release. So you have two choices:
Does this cure your problem? |
Beta Was this translation helpful? Give feedback.
-
I investigated your case. All you have to do to get your mermaid diagram displayed is to change one line inside your Change this line to
This requirement was documented in a previous version of the user guide: As of dosy version 0.6, mermaid diagrams will be displayed regardless of the value assigned to Hope this explanation can provide clarification concerning the issue you encountered! If so, please mark this dicussion as anwered. Thanks. |
Beta Was this translation helpful? Give feedback.
I investigated your case. All you have to do to get your mermaid diagram displayed is to change one line inside your
config.toml
:https://github.com/blonewolfs/hugo-mermaid-test/blob/4dbe2554c74c796e91a43c63a52d4b5b55b0647f/site/config/_default/config.toml#L68
Change this line to
This requirement was documented in a previous version of the user guide:
docsy/userguide/content/en/docs/adding-content/diagrams-and-formulae/index.md
Line 302 in 3147661
As of dosy version 0.6, mermaid diagrams will be displayed regardless …