How to convert Katex to latex or mathml? #3729
-
How do I convert katex to latex or mathml? while scrapping a website I have to convert the katex used to mathml or latex so that it can be displayed in ms word files. Any help on this issue will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@arth17singh Any KaTeX output contains (1) MathML and (2) the original LaTeX, so you can get both. Here's some typical KaTeX output:
The MathML is contained in the span with class "katex-mathml" and the original LaTeX is in the You could extract either of them with javascript. Hope it helps |
Beta Was this translation helpful? Give feedback.
@arth17singh Any KaTeX output contains (1) MathML and (2) the original LaTeX, so you can get both.
Here's some typical KaTeX output:
The MathML is contained in the span with class "katex-mathml" and the original LaTe…