-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to use MathJax V3 in React now? #2194
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
Comments
UPDATE: So, I tried to write a vanilla version of React+MathJax. It is not working and the error message is And my App.js is following:
Is there any wrong with my code? Should I give MathJax more information? Thank you. |
The main issue that I see is that you are using a version 2 configuration block rather than a version 3 one, and they aren't interchangeable. You can use the configuration converter to help you convert from v2 to v3 configurations. So you might try
Note that your Finally, I removed See if that works for you. |
It is true that the documentation for direct calls to MathJax modules (i.e., not using MathJax Components) is still under construction, so there isn't much to go on. There are examples in the MathJax Node Demos repository, but most use
Yes. The underlying code for version 3 is completely different from version 2 (a total rewrite), and since extensions rely on the v2 structure, they will not be directly compatible with v3, and will have to be converted to the new API. Again, there is not yet much documentation on that, but there is an example of a custom TeX extension in the node demos repository linked above, so that might give you some ideas for how to do that. |
Thank you very much. It is very useful. |
It appears most react-mathjax is not working anymore. Is there another way to use MathJax V3 in react app?
I assume I could start with hosting my Own Copy of MathJax. But,
Another question is will V3 of MathJax affect any third-library extensions?
The text was updated successfully, but these errors were encountered: