gt6796c / mermaid-tw5

Tiddly Wiki 5 plugin to support the mermaid library
MIT License
19 stars 10 forks source link

Artifacts left outside of tiddler #9

Open boylesean opened 6 years ago

boylesean commented 6 years ago

@tiddlytweeter There are some extra copies of the graph below the tiddler. To replicate: <$mermaid text=" graph LR; a --> b; b --> c; "></$mermaid>

TiddlyTweeter commented 6 years ago

@gt6796c I think its a great shame your TW approach to Mermaid did not get full feedback.

Its VERY close to a full viable TW5 implementation.

Mermaid is much better for logistical diagrams than most anything.

To have that working well in TW would be a real asset.

But, of course, you need feedback. And I see you didn't get that much on release.

Let us know if you are still active with this project. I'd be happy to comment if you are.

@boylesean's comments are EXACTLY in the right place. It looks like a simple bug.

Best wishes TiddlyTweeter

gt6796c commented 6 years ago

Hi, this is the same as issue #4, I'm guessing. This is actually a problem that mermaid.js has with TW's render-on-the-fly approach. A page refresh eliminates the extra artifacts. If you are seeing artifacts that survive a page refresh, then that might be something different.

boylesean commented 6 years ago

I commented #4, but I see that it is closed, so I shall continue this thread. A simple refresh would normally be an OK workaround. I would just add it to the list of workarounds, BUT if the tiddlywiki is encrypted, it turns into a refresh and re-enter the passphrase. That is a bit more convoluted. BTW, I think that using mermaid for this is brilliant! With graphs, sequence diagrammes and gantt charts, this fulfils basically anything I would need to do.

TiddlyTweeter commented 6 years ago

@boylesean & @gt6796c. I agree that Mermaid is very good. The minimalist lingo you need for great diagrams makes it very attractive.

What is it levered off? Other JS libraries? I'm wondering if some of the issue is them, rather than Mermaid itself?