question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MathJax version 3 support

See original GitHub issue

On the Math & Equations page, there is a note that MathJax 3 can be used by configuring the mathjax_path. However, if you have any other MathJax configuration (e.g., custom macros) these will not be converted to the new configuration format for MathJax 3. It seems that Sphinx does not yet support the new configuration format either; the pull request that switched Sphinx over to MathJax version 3 didn’t address the configuration changes. See also: http://docs.mathjax.org/en/latest/web/configuration.html#converting-your-v2-configuration-to-v3

I think one way to resolve this issue would be to modify the note in the Jupyter Books docs to say something about other configuration options not being suported at the moment.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:21 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
mmckycommented, Aug 18, 2021

@choldgraf did some testing today and we are finding there are still incorrect renderings of math using chtml on safari as per comments in https://github.com/QuantEcon/lecture-python.myst/pull/179.

1reaction
mgeiercommented, Sep 11, 2020

@chrisjsewell

Really, the ideal behaviour for MathJax, would be to only render text in specific HTML elements […] rather than arbitrarily searching in the text for delimiters like \\[...\\].

I don’t know whether that’s possible, but it’s possible to limit the search for delimiters to certain HTML elements.

In the pre-MathJax-3 era this was done with ignoreClass and processClass (which, for example, I’ve used there: https://github.com/spatialaudio/nbsphinx/blob/d5d352c5440cc7a185751bdf0d1ba263b7a2026d/src/nbsphinx.py#L2237-L2245).

With MathJax 3, this should become something like the following (but I haven’t tested this yet!):

window.MathJax = {
  options: {
    ignoreHtmlClass: "document",
    processHtmlClass: "math|output_area"
  }
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New in MathJax v3.0
MathJax version 3 is a complete rewrite from the ground up, with the goal of ... and server-side support, and making it faster...
Read more >
Upgrading from v2 to v3 — MathJax 3.2 documentation
The MathJax v3 output jax currently only support one font, the MathJax TeX fonts. Improved font support is an important goal for version...
Read more >
MathJax Documentation — MathJax 3.2 documentation
MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers, with built-in support for ......
Read more >
Getting Started with MathJax Components
This will load the latest 3.x.x version of MathJax from the distributed server, configure it to recognize mathematics in both TeX and MathML...
Read more >
Configuring and Loading MathJax
The configuration, loading, and startup processes for MathJax version 3 are different from ... conversion tool to help you move from version 2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found