Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

existing mathjax link is outdated #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hrbigelow
Copy link

In chromium 71 at least, MathJax doesn't render due to an outdated link. I used:

for f in $(find . -name '*.html');
do cp $f $f.orig;
perl -lne '$_ =~ s%(?<!<!--)(<script .+? src=")(.+?)(?config=TeX-AMS-MML_HTMLorMML")%${1}https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js$3%; print $_' $f.orig > $f;
rm $f.orig;
done

to update the links, as recommended in https://www.mathjax.org/cdn-shutting-down/

I spot-checked pages in chromium and firefox, and the equations render correctly.

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