Skip to content

WeBWorK: use server's MathJax config - #3172

Open
Alex-Jordan wants to merge 1 commit into
PreTeXtBook:masterfrom
Alex-Jordan:ww-mathjax-config
Open

WeBWorK: use server's MathJax config#3172
Alex-Jordan wants to merge 1 commit into
PreTeXtBook:masterfrom
Alex-Jordan:ww-mathjax-config

Conversation

@Alex-Jordan

Copy link
Copy Markdown
Contributor

Head up: I don't think this clashes with #3147, but all the same, it would be better to process #3147 before this one.

In the past, when we supported old versions of WeBWorK, we needed to hard code the MathJax config here in pretext-webwork.js. Now that we only support 2.19 and 2.20, we do not need to do that, and we should use the webwork2 server's MathJax (v3) config. So that is the main change here. Most of the red in the diff here is replaced by one line of green at the new line 345.

Nearby, I changed some lines to interpolate a js variable, to make the code more readable.

Tested directly with 2.20. For 2.19, I located some live 2.19 servers and just checked that the path which is used here for a MathJax config file is valid on those servers. So it should work exactly the same.

[Sometime coming up soon, we will add support for 2.21 (with MJ v4). The change here will make that project cleaner. But I want to be clear that this PR alone is not bringing support for 2.21.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant