-
Notifications
You must be signed in to change notification settings - Fork 649
Mermaid diagram does not render #6786
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
Comments
I think this might be the relevant error in the dev tools. To answer your questions: Yes, it is live in production. No, I personally hadn't tested it on production yet. Yes, it is broken... 😅 It looks like the reason why it works in development mode but not production is (yet again) our Content Security Policy header, which is set by nginx, which is not running in frontend development mode 🙈 @ToBinio do you have time to take a look at this? first step would be to try and reproduce this locally, and then find a CSP header that allows the mermaid stuff to render correctly. |
Shure, I can try. another note: |
I discovered a new problem... mermaid did not work on my local machine even without the CSP header. Why? firefox... so I didn't really play around with the CSP header any longer. a fix for both would be to use note: |
hmm, if I understand their docs correctly then |
Thank you for fixing it! It does render now! |
Uh oh!
There was an error while loading. Please reload this page.
Current Behavior
We want to use
mermaid
for a diagram in our README ofdefmt
.Since #6587 is merged since two weeks ago I assumed that the support for it is already live on crates.io. First question: Is this true or is it not live yet?
Expected Behavior
In any case, the diagram unfortunately does no render on crates.io, but it does render on GitHub.
When opening the page, crates.io shows a warning popup with "Failed to render mermaid diagram." and in the console it prints "WARN: Could not find the language 'mermaid', did you forget to load/include a language module?".
How can I fix this?
Steps To Reproduce
Go to crates.io/defmt and open the developer console.
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: