-
Notifications
You must be signed in to change notification settings - Fork 42
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
How can I load my external package by mathjax-full v3.0.5 in Node Env #43
Comments
@dpvc anyone help? I need u davide~ 😭 |
Your original code uses the direct importing of MathJax modules (as illustrated in the direct examples of the MathJax node demos), and you are now trying to mix that with MathJax components, but these are not compatible approaches (unless you are trying to make a webpacked MathJax component yourself). You have to either use all direct imports or only use MathJax components. There are two ways to do what you are trying to do. The first is to import the TeX extensions directly via import 'mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js';
import 'mathjax-full/js/input/tex/extpfeil/ExtpfeilConfiguration.js';
... Or you could just import 'mathjax-full/js/input/tex/AllPackages.js'; which will import all the packages (less efficient if you don't need them all, but easier to do). |
I want to use tex2mml api, and my code as follow:
But, I want to load external package to parser others LaTeX, like siunitx(for mathjax v3) package.
And then , I try to use loader module
I trace this error , and find when load packages, it use script tag
How can I fix it? Do u have some good idea? Thank u very much!
The text was updated successfully, but these errors were encountered: