Skip to content

Commit

Permalink
Enhance accessibility of MathJax script loading with cdnjs (#1304)
Browse files Browse the repository at this point in the history
* Add fallback mechanism for MathJax script loading to enhance global accessibility.

* Update mkdocs.yml

* Update mathjax.js

---------

Co-authored-by: Yudong Jin <[email protected]>
  • Loading branch information
KraHsu and krahets authored Apr 26, 2024
1 parent 9e7fbf2 commit 71b7cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ markdown_extensions:
extra_javascript:
- javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.min.js
# - javascripts/katex.js
# - https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js
# - https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js
Expand Down

0 comments on commit 71b7cc8

Please sign in to comment.