felixhayashi / TW5-TiddlyMap

Map drawing and topic visualization for your wiki
http://tiddlymap.org
BSD 2-Clause "Simplified" License
863 stars 132 forks source link

Latex/Katex as Node-label field #403

Open garryFromGermany opened 3 years ago

garryFromGermany commented 3 years ago

I am looking for a way to set the Node-label field to be rendered with vnd-tiddlywiki, so Latex shows rendered out as the nodes label.

So far, my workaround is to take a screenshot of the rendered Latex, save it as an image-tiddler and set this image to be the nodes icon. But this becomes infeasible for more than a few nodes.

Is there a better way? If not, this would be a great improvement.

garryFromGermany commented 3 years ago

I looked into the code and I see, this would require me to put html as a label for the node. According to an issue for Vis.js, the nodes are drawn with svg though. So it's not possible, unless they make a change. My next idea is to render the Katex into an image and put that as the nodes icon. Maybe Katex can offer help on that.