You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
23eaf2a introduced the use of KaTeX autorenderer and started surrounding math with \( \) and \[ \]. It seems like these markers are needed for the autorenderer, however the KaTeX parser fails when manually invoked on such a marked math element.
My suggestions is that, rather than surrounding math elements and using the autorenderer: do not surround them since there is already a span tag around the elements and invoke the KaTeX render function on them directly.
This invocation might not be bullet proof, yet I think it is better than relying on the autorenderer. Typically Pandoc already knows which elements should be rendered using KaTeX, and which should not.
The text was updated successfully, but these errors were encountered:
Also, enable copy-text extension to katex, which
allows one to copy latex source of rendered formula.
Pandoc 2.5 includes a fix for rendering math formulas
using katex. See:
jgm/pandoc#4946
Remove some unused dependencies picked up by weeder.
23eaf2a introduced the use of KaTeX autorenderer and started surrounding math with
\( \)
and\[ \]
. It seems like these markers are needed for the autorenderer, however the KaTeX parser fails when manually invoked on such a marked math element.My suggestions is that, rather than surrounding math elements and using the autorenderer: do not surround them since there is already a
span
tag around the elements and invoke the KaTeX render function on them directly.For clarification, here the
span
tags:And this is how I invoke KaTeX (at the bottom of my HTML document):
This invocation might not be bullet proof, yet I think it is better than relying on the autorenderer. Typically Pandoc already knows which elements should be rendered using KaTeX, and which should not.
The text was updated successfully, but these errors were encountered: