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
I tried this math formula here, https://focused-tesla-b6fe0a.netlify.com/, and It shows Unexpected text node: '2'.
But when I delete all the annotation tags it works?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This is a configuration problem in this code. Configuring MathJax in React is not straightforward and I didn't find a quick fix for that. I will try to address this issue when updating to MathJax 3. Meanwhile feel free to submit a PR if you have a solution.
@mehdisadeghi Thanks. I will see if I am able to fix this. The issue is because of DOMPurify that's all I know as of now. We might need to pass some sanitizationConfig which will fix this issue.
<math xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>=</mo><semantics><mrow><mn>2</mn></mrow><annotation encoding="text/plain">2</annotation></semantics><mspace linebreak="newline"/><mn>2</mn><mo>=</mo><semantics><mrow><mn>3</mn></mrow><annotation encoding="text/plain">3</annotation></semantics></math>
I tried this math formula here, https://focused-tesla-b6fe0a.netlify.com/, and It shows Unexpected text node: '2'.
But when I delete all the annotation tags it works?
The text was updated successfully, but these errors were encountered: