Remove the script tag processing of MathJax. - #3129
Conversation
|
I think you linked the wrong PR in the commit and description. |
f353e5c to
e3d32a9
Compare
|
Should this be a hotfix also? It is actually not necessary for openwebwork/pg#1501. |
|
I could go either way. I doubt not processing script tags that aren't there won't speed things up in a noticeable fashion. But couldn't hurt. |
|
I won't have time to check this (and the associated PR in pg) until later today. But the one thing on my mind to check is how/if PTX inserts any math (specifically for defining an author's LaTeX macros) into the iframe srcdoc for an embedded webwork file. If there's a real issue there, it's possible that it would be better to leave this be on main and give me a year to work out something different for 2.22 and beyond. |
The injection of `<script type="math/tex">...</script>` tags by PG is removed by openwebwork/pg#1499. So the script tag handling in the `mathjax-config.js` file is no longer needed.
e3d32a9 to
0c5695c
Compare
|
@Alex-Jordan well this doesn't need to be a hotfix, and is independent of the PG one, in the sense we could remove using of script tags from PG (PGML isn't using them already), but leave this alone so webwork can still process them if something like pretext needs that processing. |
The injection of
<script type="math/tex">...</script>tags by PG is removed by openwebwork/pg#1499. So the script tag handling in themathjax-config.jsfile is no longer needed.