Closed danielo515 closed 7 years ago
Yeah, I've seen this. I think that I know where it is happening, but I've not looked into actually fixing it yet.
They are temporary in that if you refresh the page (either using the browser or the TW button) they go away.
Actually, I don't know that I can do anything about this.
I thought it was going to be because I was being very cavalier with creating new DIVs for the SVG every time the widget was told to render itself, but that actually seems to be doing what it is supposed to. I dove deeper into mermaid and the trash being left behind is actually from the mermaid.js call to render()
It looks like TW's model for preview-as-you-type doesn't really play well with mermaid at times. The errors always seem to be setting the viewport's height and width with Infinity instead of a number.
I may poke around some more, but this one might be more trouble than it is worth (to me) since a refresh gets rid of all the trash.
Marking as won't fix
Requiring a refresh may seem like a minor irritation, but if the tiddlywiki is encrypted, then a refresh requires the passphrase to be re-entered. As implied, if I disable preview for the tiddler, the relics do not show up, so I have a workaround for the moment. This really is the best thing going for diagrammes!
How to reproduce:
C((a circle));
toC(a circle);
manually (no copy paste)Screenshot: