-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class='MJX-TeXAtom-ORD' in MathML crashes mathml2chtml #2822
Comments
The classes that start with Also, this must be coming from MathJax v2 output, as v3 uses a Although I can have MathJax ignore the class if it is not on an |
The example came from https://en.wikipedia.org/wiki/Quadratic_formula, so I guess they are still stuck on v2. The movement of the attr to the Based on your reply, removing |
Yes, wikipedia is using v2.
I think that overlooks the attributes shared by all MathML elements, which includes
If you are going to remove these attributes, then I'd recommend removing any class starting with |
Apologies for not being precise -- I meant the only mrow-specific attr is I'll change my code to remove |
Only process MJX-TeXAtom classes on mrow elements. (mathjax/MathJax#2822)
Issue Summary
If
class='MJX-TeXAtom-ORD'
is present in MathML being converted bymathml2chtml
, then the function crashes. This happens in both Firefox and ChromeSteps to Reproduce:
I know it might seem strange to have this internal class set, but the situation is that the math is being grabbed from the web, processed a little, and being sent back to MathJax for rendering. Since the original source (Wikipedia) used MathJax, that shows up.
Technical details:
The text was updated successfully, but these errors were encountered: