Open agoose77 opened 2 years ago
Sphinx applies some heuristics to determine what kind of outer environment to apply to math blocks: Unfortunately for us, they don't do the same thing for mathjax as they do for LaTeX: https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/util/math.py#L23-L55 https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/ext/mathjax.py#L36-L65
In any case, we should align ourselves with whatever Sphinx ultimately runs with (probably the LaTeX impl as it is newer).
No response
Context
Sphinx applies some heuristics to determine what kind of outer environment to apply to math blocks: Unfortunately for us, they don't do the same thing for mathjax as they do for LaTeX: https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/util/math.py#L23-L55 https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/ext/mathjax.py#L36-L65
In any case, we should align ourselves with whatever Sphinx ultimately runs with (probably the LaTeX impl as it is newer).
Proposal
No response
Tasks and updates
No response