mathjax / MathJax-node

MathJax for Node
Apache License 2.0
616 stars 97 forks source link

Update dependancy to MathJax 3 #494

Open ElieGouzien opened 5 months ago

ElieGouzien commented 5 months ago

MathJax 3 is bringing substantial improvement, in particular new extensions that allow using nice LaTeX packages.

It would be nice to update this package to support MathJax 3.

dpvc commented 5 months ago

The mathjax-node package was a hack to allow MathJax v2 to be used in node applications (since v2 was only meant for in-browser use).

MathJax v3 was designed around allowing use in node applications without the need for a wrapper like mathjax-node. So you can use MathJax v3 directly. See the MathJax node demos repository for examples.

The README file here should be updated to point to that repository.

ElieGouzien commented 4 months ago

Hey, thanks for your answer, that's very instructive.

Beyond writing in the doc that mathjax-node is not needed anymore, I still think that having a mathjax-node version using mathjax 3 would help all the projects that uses mathjax-node to update to mathjax 3 without having to get to know the internals of mathjax , and without significant change to their code.