Skip to content

Vendor in the mathjax library - #22

Closed
zerolab wants to merge 2 commits into
mainfrom
bundled-mathjax
Closed

Vendor in the mathjax library#22
zerolab wants to merge 2 commits into
mainfrom
bundled-mathjax

Conversation

@zerolab

@zerolab zerolab commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR vendors in the MathJax library as discussed in #21 (comment)

Bundled library update workflow:

  • go to https://github.com/mathjax/MathJax/releases
  • download one of the assets. the https://github.com/mathjax/MathJax/ repo is the compiled library and is what CDNs serve
  • unpack
  • remove
    • rm *-nofont.js node-* CONTRIBUTING.md README.md *.json *.mjs mml-*.js tex-chtml.js text-svg.js tex-mml-svg.js
    • rm -r adaptor
  • copy to src/wagtail_polymath/static/wagtail_polymath/js/vendor/mathjax/
  • verify directory structure matches (and if not, whether any new files are needed)

For major version upgrades see https://docs.mathjax.org/en/latest/upgrading/index.html and follow the upgrade guide

@zerolab
zerolab requested a review from Stormheg June 23, 2026 15:39
@zerolab zerolab added this to the Version 2.0 milestone Jun 23, 2026
@zerolab zerolab added the dependencies Pull requests that update a dependency file label Jun 23, 2026
@zerolab zerolab removed this from the Version 2.0 milestone Jun 23, 2026
@zerolab

zerolab commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing this after further discussion with @Stormheg

@zerolab zerolab closed this Jun 23, 2026
@zerolab
zerolab deleted the bundled-mathjax branch June 23, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant