lynchjames / obsidian-mind-map

An Obsidian plugin for displaying markdown notes as mind maps using Markmap.
MIT License
1.1k stars 77 forks source link

latex duplication #111

Open AstolfoOnTheMoon opened 8 months ago

AstolfoOnTheMoon commented 8 months ago

Left is what I wrote Right is what appear in the map How can I fix this duplication? a

itsonlyjames commented 5 months ago

I've also been experiencing the same issue, upon investigation it seems that katex is being rendered twice, one as katex-mathml and the other as katex-html, from my observations katex-mathml is the correctly rendered one and I assume the one to keep.

image

Adding .katex-html { display: none; } does fix the issue, but some rendering issues still exist.. (does katex have mhchem? In my case \ce is not rendering correctly)

I'm fairly new to Katex and LaTeX so not sure on the best course of action