asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.9k stars 299 forks source link

Editor freaks out when editing mermaid diagrams #546

Open GregJohnStewart opened 2 years ago

GregJohnStewart commented 2 years ago

Running on Ubuntu 20.04

When I go to edit a mermaid diagram, sometimes it is fine, but after a few edits both the source view and the preview start flashing between a blank screen and what is supposed to be there. The top bar elements are unaffected.

Sometimes it snaps out of it, sometimes it doesn't and requires a restart. I can try to make a gif of the behavior upon the request.

To me, I'm interpreting it as an invalid syntax is given for a mermaid diagram (for instance, while editing) issue, where it tries to render the diagram, gets an error, and refreshes the views as it retries to render the diagram. (this is just a guess, I don't know for sure).