-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Upgrade mermaid-js/mermaid @ 0918b97 (v8.8.0) #443
Upgrade mermaid-js/mermaid @ 0918b97 (v8.8.0) #443
Conversation
BTW I love this Learn theme! Thank you. |
This is explicitly not trying to solve the CDN issue mentioned in other issues. It is the dumbest upgrade path so that the Learn theme can support a newer mermaid sooner since all the other CDN resolving PRs did not get merged so far. |
Thanks @mbbx6spp, let's get this merged while larger CDN discussion takes place. Also thanks for providing me steps to validate the contents of the javascript you provided, however I have mismatching sha256 on my side during validation. Could I ask why you do a yarn build when the zip file already contains the minified js? My steps to validate as follows...
|
@matalo33 Sorry for that, I just ran Give me a moment to overwrite the file with the official version. |
@matalo33 should be fixed now. The SHA256 of the file in the repo at |
Excellent thanks very much! I confirm |
Sadly, there are issues with mermaid 8.8.0 and versions prior.
I tested mermaid 8.6.4 and all the above issues are not observable there. So that's my current favorite until further issues. |
Probably we should add a param to enable / disable your mentioned "fix" and document it on the configuration page. Since the CDN PR was merged, Users of the CDN will also profit from the toggle fix. If we just downgrade, users with a later version are still having this Problem. |
I would prefer to have the whole mermaid config object to be configurable from our This would also allow users to set the mermaid theme, which was requested in #435 I will open another issue and a PR for this. |
I upgraded the mermaid-js/mermaid static JS with the minimized version built by using the following method:
The new mermaid has support for a lot more diagram types including:
stateDiagram-v2
: state diagramerDiagram
: entity-relationship diagramjourney
: user journeyMore information here: https://mermaid-js.github.io/mermaid/diagrams-and-syntax-and-examples/n00b-syntaxReference.html
This PR also includes changes to the
exampleSite
that fix formatting in the mermaid shortcode examples for correct rendering and adds a new example for thestateDiagram-v2
for both English and French (please make suggestions to my French state machine for more appropriate words).