Skip to content
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

[BUG] Mermaid not rendering: Failed to load resource: mermaid.min.js #501

Open
jaywhj opened this issue Nov 21, 2024 · 0 comments
Open

[BUG] Mermaid not rendering: Failed to load resource: mermaid.min.js #501

jaywhj opened this issue Nov 21, 2024 · 0 comments

Comments

@jaywhj
Copy link

jaywhj commented Nov 21, 2024

Hello, when I tried demo-mermaid/mermaid.md, I found that the mermaid diagram is not rendered, only the diagram code is displayed. looking at the built mermaid.html file, I see that the mermaid.min.js file is missing.

iShot_2024-11-21_20 49 56 iShot_2024-11-21_20 51 56


Found out that it seems to be a problem with the template file node_modules/reveal-md/lib/template/reveal.html configuration. but I don't know how to fix it.

iShot_2024-11-21_20 54 42


In actuality, the mermaid.min.js path is configured in the template file, but the build does not copy this file to the build directory, what do I have to do to fix this?


In addition, if you want to modify the default reveal.html file, then configure the search.js into it, I see that the project has built-in search.js, but it is not configured into the template reveal.html.

iShot_2024-11-21_20 57 36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant