Update MathJax to version 4.0. #2832
Open
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.
For the most part, there isn't much that is needed. The javascript files are no longer in the
es5subdirectory, and the workaround for changing the math renderer was removed (as noted in the comment above it).The
mathInteraction.pgproblem in the student orientation has been updated, although further updates may be needed. The screen shots the problem uses were updated, but someone else might need to create better screen shots. Mine seem to have come out quite a bit smaller than the previous ones.I removed the rather old examples of the
$pg{specialPGEnvironmentVars}{problemPreamble}and$pg{specialPGEnvironmentVars}{problemPostamble}variables indefaults.configandlocalOverrides.conf.distthat include examples of doing things with MathJax that weren't even valid for MathJax 3. I also made the deprecation statement for that variables stronger.There is a minor css tweak in
system.scssto ensure that the MathJax expression eplorer help dialog is above the masthead and stick problem navigation bar.Further modification to the MathJax configuration (in
htdocs/js/MathJaxConfig/mathjax-config.js) may be needed as per the discussion in issue #2828. But that can wait until we have more information.