What exactly happens after renderMathInElement() changes the HTML? #2989
Unanswered
Kombat-Batyanya
asked this question in
Q&A
Replies: 1 comment 11 replies
-
This issue seems to be a consequence of KaTeX not being able to render on SVG as described in #375 I managed to display a KaTeX content in a Spotfire JSViz that doesn't use SVGs. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to figure out if I will be able to use KaTeX in TIBCO Spotfire JSViz visualizations. For those who don't know what Spotfire is, it is a corporate BI platform that can use embedded Chromium to render graphic elements written in JavaScript (among many other nice things) .
As far as I can see my renderMathInElement() call successfully parses LaTeX content in my DIV and changes the HTML code, but when it tries to render the result on the screen it gets stuck and renders nothing. No errors are thrown.
This is my DIV just before and after the renderMathInElement() call:
https://drive.google.com/file/d/18q0dhtSqpAijTs1OkB3bhhZ204SyWJjv/view?usp=sharing
Hence the subject question, if the HTML is successfully replaced by renderMathInElement(), what could prevent Spotfire's Chromium to render it? Am I merely missing some additional libraries not disclosed in https://katex.org/docs/autorender.html ?
For example, what does this url http://www.w3.org/1998/Math/MathML do in the replaced code?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions