Add support for MathJax 3, upgrade vendored MathJax to 3.2.2 #740
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow up to #737 and #738
This pull request updates the vendored files for MathJax to the latest release, 3.2.2.
The previous version that was shipped with jrl-cmakemodules was from an old 2.x from over a decade ago. MathJax 3.x is a full rewrite which is much faster than 2.x (partly as a response to the development of KaTeX which was leaner and faster).
Major changes
MATHJAX_VERSION
, which defaults toMathJax_3
(for Doxygen>=1.9.2. Other users get MathJax 2.)MATHJAX_RELPATH
is set to${PROJECT_JRL_CMAKE_MODULE_DIR}/doxygen/MathJax
(i.e. our vendored MathJax). If the user desires MathJax 2, they can set the path themselves, or leave it unset to let Doxygen inject the MathJax 2.x CDN instead.doxygen/MathJax
to the pre-commit exclusion rules.