question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mermaid plugin doesn't work as expected in preview tab mode

See original GitHub issue

Mermaid won’t render correctly after switch to Preview tab as shown below:

mermaid_tab_mode

Sometimes it will render as follows:

2022-07-04_08-45

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:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
filipedeschampscommented, Jul 4, 2022
0reactions
github-actions[bot]commented, Nov 11, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found