-
Notifications
You must be signed in to change notification settings - Fork 32
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
Enabling MathJax extensions breaks it completely #279
Comments
Thanks for the detailed report! I'm guessing the fix is to adjust the list of patterns that are copied to the theme's dist (as you noted in OP). Would you like to submit a PR? |
Using SVG renderer causes a similar problem:
I'm starting to think everything from mathjax/dist/output needs to be copied over: -...["tex-mml-chtml.js", "output/chtml/fonts/woff-v2/*.woff", "../LICENSE"]
+...["tex-mml-chtml.js", "output/**", "../LICENSE"] |
resolves #279 Now includes all mathjax-needed files in the dist. This will also fix other features in the mathjax that optionally enabled (svg rendering).
resolves #279 Now includes all mathjax-needed files in the dist. This will also fix other features in the mathjax that optionally enabled (svg rendering).
fix available in v0.11.8 |
Enabling any MathJax extension (for instance, Accessibility) makes the library request modules from
a11l
andsre
directories. The script errors out and aborts processing because these directories are not present in the local cache:sphinx-immaterial/tools/build/index.ts
Lines 138 to 143 in 57224a3
According to the CDN docs:
But according to my quick research, there is no configuration option to disable fetching those files at all.
How to repreduce
Now the math is not rendered and there is a 404 error from a failed fetching of
a11y/sre.js
.How to recover
I had to clear the Local Storage for a given site, because the MathJax context menu is no longer accessible...
The text was updated successfully, but these errors were encountered: