hugo-theme-learn icon indicating copy to clipboard operation
hugo-theme-learn copied to clipboard

Update Mermaid version

Open JohnXLivingston opened this issue 2 years ago • 2 comments

Hello,

I'm trying to use mermaid direction option in subgraphs. https://mermaid-js.github.io/mermaid/#/./flowchart?id=direction-in-subgraphs It seems it is not working. I think this is because the mermaid version is not up-to-date (I did not find which version is used).

Is it possible to update the mermaid version used?

Thanks.

JohnXLivingston avatar Mar 16 '22 17:03 JohnXLivingston

Directions in subgraphs are a difficult topic as they sometime behave weirdly when there are pointer between subgraphs involved.

So at first try to check with the mermaid online editor, if your graph looks as it should. If afterwards, the same graph looks different on your site, you have some options:

a) use Mermaid from a CDN (see customMermaidURL config option) or copy a newer version into your own static/js directory b) wait (probably infidently) until Mermaid is updated with this theme c) use my fork

McShelby avatar Mar 16 '22 20:03 McShelby

Thanks for your reply @McShelby

JohnXLivingston avatar Mar 17 '22 08:03 JohnXLivingston