james-tindal / obsidian-mindmap-nextgen

Create mind maps from your obsidian markdown files
MIT License
159 stars 7 forks source link

Latek duplication #196

Open mrpushker opened 8 months ago

mrpushker commented 8 months ago

for a latex block the formula/equation appears twice in the mind map.

image

but it appears like this on the mindmap

image

itsonlyjames commented 5 months ago

I posted this comment on the (original?) plugins issues, but for reference it's definitely rendering twice, one as katex-mathml and the other as katex-html, the katex-mathml is the correctly rendered katex formula. https://github.com/lynchjames/obsidian-mind-map/issues/111#issuecomment-2051017057

If you add the following CSS to a custom stylesheet for Obsidian you can fix this particular issue (prevent non-correctly rendered math block from rendering)

.katex-html {
  display: none;
}