mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
d16bdecab6
The KaTeX renderer usually renders the raw KaTeX into MathML. This can not be properly displayed inside the toc and further makes problems when trying to render a fallback, because then parts could become duplicated. This commit fixes this by stripping MathML code completely for the title processing, leaving the raw KaTeX code intact. The only downside of this approach is that the surrounding '$' get lost, but this seems still better than nothing or duplicated content. Signed-off-by: Erik Michelson <github@erik.michelson.eu>