Mermaid blocks never render in the web editor's Preview tab (spinner forever); committed file renders fine #210926
Unanswered
codingoutloud
asked this question in
Repositories
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
Mermaid blocks never render in the web editor's Preview tab: a spinner shows forever. The same content renders once committed.
Repro (public repo: https://github.com/codingoutloud/GitHub-render-bug-repro)
Open
https://github.com/<owner>/<repo>/new/mainand name the filet.md.Content:
Click Preview. A loading spinner shows indefinitely and no diagram appears.
Commit the file and open it. The blob view's Preview renders the diagram correctly (t.md).
The same thing happens when editing an existing
.mdfile (/edit/<branch>/<path>.md) that contains Mermaid and renders fine in its blob view. Reloading the page does not help.What the DOM shows (Chrome DevTools): in the editor's Preview, each block's
<section class="js-render-needs-enrichment render-needs-enrichment ... mermaid">is never enriched. Noviewscreen.githubusercontent.com/markdown/mermaidiframe is created, and thejs-render-enrichment-loaderspinner stays. The console shows no errors from GitHub. In the blob view, the iframes are created and every diagram draws.Expected: Preview renders Mermaid the way the blob view does.
Environment (checked 2026-10-21):
All reactions