You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mermaid syntax errors result in large diagrams reducing size dramatically to display the error condition and then the linked markdown source code editor scrolls unexpectedly
#208
This is perhaps the most annoying thing I've found with this extension so far.
Would it be possible, perhaps, for you to cache the last successfully rendered diagram width and height and then honour that size when rendering the error condition?
Those error conditions are always transitory in nature, quickly fixed by the human who's editing the code.
The unexpected behaviour I'm seeing is that my markdown preview is seemingly triggered the markdown source code editor to scroll 'madly' when it changes size continuously.
Same vibes as when you load a web page and images don't know their width and height beforehand, if you get my drift.
The text was updated successfully, but these errors were encountered:
Most of my day today has been spent working on a Mermaid document embedded in Markdown with VS Code, and this issue's been doing my head in. For others facing the same frustration there's a VS Code setting which you can disable which stops the preview from influencing the editor scroll position:
Not a feature I was particularly relying upon in my workflow anyway.
This is perhaps the most annoying thing I've found with this extension so far.
Would it be possible, perhaps, for you to cache the last successfully rendered diagram width and height and then honour that size when rendering the error condition?
Those error conditions are always transitory in nature, quickly fixed by the human who's editing the code.
The unexpected behaviour I'm seeing is that my markdown preview is seemingly triggered the markdown source code editor to scroll 'madly' when it changes size continuously.
Same vibes as when you load a web page and images don't know their width and height beforehand, if you get my drift.
The text was updated successfully, but these errors were encountered: