Mermaid blocks never render in the web editor's Preview tab (spinner forever); committed file renders fine #210924
Replies: 1 comment
|
Thank you for your interest in contributing to our community! We currently only accept discussions created through the GitHub UI using our provided discussion templates. Please re-submit your discussion by navigating to the appropriate category and using the template provided. This discussion has been closed because it was not submitted through the expected format. If you believe this was a mistake, please reach out to the maintainers. |
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