Skip to content

Mermaid graphs fail to render #1313

Answered by deining
blonewolfs asked this question in Q&A
Nov 16, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

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

guessSyntax = "false"

This requirement was documented in a previous version of the user guide:

You also need to disable the `guessSyntax` from markup highlighting in `config.toml`/`config.yaml`/`config.json` for Mermaid to work:

As of dosy version 0.6, mermaid diagrams will be displayed regardless …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@deining
Comment options

@blonewolfs
Comment options

@deining
Comment options

@blonewolfs
Comment options

@deining
Comment options

Comment options

You must be logged in to vote
1 reply
@blonewolfs
Comment options

Answer selected by blonewolfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants