10

Currently the stack exchange sites use MathJax v2 (see Which Stack Exchange sites use MathJax? for list of sites) which slowly becomes obsolete as new version 3.0.0 is in last beta. Since MathJax v3 is a major rewrite from v2, I would like to bring up this discussion on whether or when, there is a plan to switch to this version, and also consider alternatives.

MathJax v3

MathJax version 3 beta 4 has been announced on May 21, 2019, and it the final planned beta version before release before official 3.0 release. However they changed it from version v2 quite a lot (see Upgrading from v2 to v3), so it is not a simple drop-in replacement. Also as noted by Davide Cervone in my previous mathematics meta post Switch to MathJax version 3?, there are still some critical features that are not yet (as of 11/23/2019) implemented, such as automatic line breaking (and preview editor udpates are mentioned as well).

For the list of new features see http://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html.

KaTeX

KaTeX (see the official KaTeX site) seems to be faster alternative to MathJax, see for example KaTeX and MathJax Comparison Demo, BUT (!!) note that is demo compares against MathJax version 2.7.2, and might not be accurate as MathJax v3 also improved performance (some more up to date comparsion would be needed).

However I can't help but it seems that MathJax renders prettier equations, but it seems to be that the performance should be more important. Also one thing I have noticed, the KaTeX (or at least its examples) do not offer the context menu (for example to view the equation source).

KaTeX has been already considered on this site in past, see for example these:

However, it seems lots (if not all) of the features that were missing/objected then are now implemented, you can try the KaTeX renderer on https://stackedit.io/app#, so I believe it is worth re-evaluating as of 2019. See also Supported KaTeX Functions.

  • 4
    There are also requests for quantikz and qpic along with QCircuit / XYJax / Xy-Pic on QC.SE. Other sites, such as Music.SE, have specialized rendering too. So whatever is implemented needs to work with what we have, and what might be forthcoming. – Rob Nov 23 '19 at 12:35
  • 3
    I wouldn't say that performance is an overriding concern as long as it's not worse than the current performance. I'd worry more about backwards compatibility for all the existing content. – Stop Harming the Community Nov 23 '19 at 18:33

You must log in to answer this question.

Browse other questions tagged .