You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem in Sphinx 4.3 is that now, as discussed in #9450, mathjax is loaded with the “defer” option instead of “async”, and this breaks plotly rendering.
Describe the solution you'd like
In the mathjax2_config dict, it would be nice to have an option "load_method" in which we would be able to choose "async" or "defer"
Additional context
Error that shows up in the console:
The text was updated successfully, but these errors were encountered:
MathJax library has been loaded via "defer" strategy since v4.3.0. But
it prevents to work MathJax v2. This rollbacks the change and use
"async" strategy as default again.
To support changing "defer" strategy, this introduces a new confval;
mathjax_loading_method to switch the loading method of MathJax.
MathJax library has been loaded via "defer" strategy since v4.3.0. But
it prevents to work MathJax v2. This rollbacks the change and use
"async" strategy as default again.
To support changing "defer" strategy, this introduces a new confval;
mathjax_loading_method to switch the loading method of MathJax.
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Nov 21, 2021
MathJax library has been loaded via "defer" method since v4.3.0. But
it prevents to work MathJax v2. This rollbacks the change and use
"async" method as default again.
To support changing the loading method, this allows to specify it via
mathjax_options.
Is your feature request related to a problem? Please describe.
Plotly uses mathjax v2, so to render graphs using this package we have to make sphinx also use mathjax v2 with (see #9563):
The problem in Sphinx 4.3 is that now, as discussed in #9450, mathjax is loaded with the “defer” option instead of “async”, and this breaks plotly rendering.
Describe the solution you'd like
In the mathjax2_config dict, it would be nice to have an option "load_method" in which we would be able to choose "async" or "defer"
Additional context
Error that shows up in the console:
The text was updated successfully, but these errors were encountered: