-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add the latest mermaid.min.js
file
#90
Conversation
I assume you are using latest
Not sure if I understand why pinning the version would help, I guess it avoid inconsistencies between the generated JS library and the I still think we can merge this PR if it solves it for you, for me, it works the same way (I'm using |
Yes I am, but they're not rendering correctly in I've viewed this page on different computers using different browsers and the problem persists, so it's at least not a browser caching or compatibility issue on my end.
I'm not entirely sure how the pre-processor works, but you need to run As I said though,
I'm confused why it's apparently working on your end, but there's no harm in updating to the latest version of the JS lib at the very least. |
Okay I've now ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did the test again and got the same results. Using mdbook-mermaid install
generates the changes in the library that you pushed but works fine for me with the new and the old JS lib. But, as you mentioned, it's not working fine in the deployment, so let's push this and see if it solves it!
Regarding pining the mdbook
version, it might be a good idea, just subscribed to mdbook
releases in case they publish any new release.
At some point our graphs stopped rendering, and updating the JS library seems to fix this. At least locally, the graph was not rendering when running
mdbook serve
, and once updating this JS library it began rendering again.@SergioGasquez could you please verify this resolves the issue for you, too?
Maybe we should pin the version of
mdbook-mermaid
in CI to avoid this? It doesn't seem to release often, but I reckon we'll need to do this update with each release. Outside the scope of this PR, but something to consider I guess.