matcornic / hugo-theme-learn

Porting Grav Learn theme to Hugo
https://learn.netlify.com/en/
MIT License
1.6k stars 1.28k forks source link

Update Mermaid version #532

Open JohnXLivingston opened 2 years ago

JohnXLivingston commented 2 years ago

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.

McShelby commented 2 years ago

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

JohnXLivingston commented 2 years ago

Thanks for your reply @McShelby