Mermaid plugin doesn't work as expected in preview tab mode
See original GitHub issueMermaid won’t render correctly after switch to Preview
tab as shown below:
Sometimes it will render as follows:
There’s some errors on console output:
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
mermaid.esm.min.mjs?970a:2 Error: <g> attribute transform: Expected number, "translate(Infinity, Infini…".
eval @ mermaid.esm.min.mjs?970a:2
each @ mermaid.esm.min.mjs?970a:2
attr @ mermaid.esm.min.mjs?970a:2
Se @ mermaid.esm.min.mjs?970a:2
Oa @ mermaid.esm.min.mjs?970a:2
render @ mermaid.esm.min.mjs?970a:2
eval @ index.mjs?e13d:134
eval @ index.mjs?e13d:126
viewerEffect @ index.mjs?e13d:140
eval @ index.mjs?c90f:2067
on @ index.mjs?c90f:2065
eval @ index.mjs?c90f:2095
flush @ index.mjs?c90f:983
Promise.then (async)
schedule_update @ index.mjs?c90f:953
make_dirty @ index.mjs?c90f:1073
eval @ index.mjs?c90f:1107
eval @ index.mjs?c90f:3341
invokeFunc @ debounce.js?a0cd:95
trailingEdge @ debounce.js?a0cd:144
timerExpired @ debounce.js?a0cd:132
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
timerExpired @ debounce.js?a0cd:135
setTimeout (async)
leadingEdge @ debounce.js?a0cd:103
debounced @ debounce.js?a0cd:172
...
Full log file: bytemdmermaidtest-1656934735451.log
Obs.: It works as usual on ‘split’ mode
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Mermaid Chart does not render in live preview - Obsidian Forum
The chart should render fine. Actual result. It just renders a empty box. But it works fine when i switch live preview off....
Read more >Rendering Mermaid Charts - Markdown Monster Documentation
Markdown Monster can preview the resulting chart in the previewer. ... The latter will not work with Mermaid diagrams, while the former does ......
Read more >Where is Android Studio Markdown support plugin preview ...
I suggest giving up and opening it in Visual Studio Code. Right-click tab with your file, select Split Right. In second instance, right-click ......
Read more >Troubleshooting - Dendron
Sometimes Dendron views can get out of sync with notes. To fix, run Dendron: Reload Index to manually sync. If that doesn't work,...
Read more >Markdown | IntelliJ IDEA Documentation - JetBrains
Open the Installed tab, find the Markdown plugin, and select the checkbox next to the ... The preview does not work on Android...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Vídeo confirming that the problem is only on
tab
mode:https://user-images.githubusercontent.com/4248081/177216606-71ba90e2-f89e-44de-a99d-65570e508d40.mov
This issue was closed because it has been inactive for 7 days since being marked as stale.