Skip to content

Upgrade bundled MathJax to v4 - #72

Merged
jmnote merged 1 commit into
mainfrom
chore/mathjax-v4
Sep 6, 2026
Merged

Upgrade bundled MathJax to v4#72
jmnote merged 1 commit into
mainfrom
chore/mathjax-v4

Conversation

@jmnote

@jmnote jmnote commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin the resources/MathJax submodule to 4.1.3 (was a v3-era commit)
  • CDN and local script src now point at .../mathjax@4/tex-chtml.js instead of .../mathjax@3/es5/tex-chtml.js (v4's package layout drops the es5/ subdirectory)
  • Add hack/mathjax.sh + make mathjax, the tool used to do the above bump, so future version bumps don't need the same manual git-submodule dance. Local and CDN versions are pinned separately on purpose (the local copy to an exact tag via MATHJAX_VERSION_LOCAL, the CDN URL to just a major version via MATHJAX_VERSION_CDN, since jsdelivr resolves that to the latest matching release) and make mathjax updates both together.
  • Bump extension.json version to 0.12.0

No config or feature changes here. A later PR adds a display="linebreak" option that depends on a v4-only chtml.displayOverflow setting — this PR is just the version bump it needs first.

🤖 Generated with Claude Code

- Pin the resources/MathJax submodule to 4.1.3 (was a v3-era commit)
- CDN and local script src now point at .../mathjax@4/tex-chtml.js
  instead of .../mathjax@3/es5/tex-chtml.js (v4's package layout drops
  the es5/ subdirectory)
- Add hack/mathjax.sh + `make mathjax`, the tool used to do the above
  bump, so future version bumps don't need the same manual git-submodule
  dance. Local and CDN versions are pinned separately on purpose (the
  local copy to an exact tag via MATHJAX_VERSION_LOCAL, the CDN URL to
  just a major version via MATHJAX_VERSION_CDN, since jsdelivr resolves
  that to the latest matching release) and `make mathjax` updates both
  together.
- Bump extension.json version to 0.12.0

No config or feature changes here; the new v4-only chtml.displayOverflow
linebreak option lands with the display="linebreak" feature that depends
on it, in a follow-up commit.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jmnote
jmnote merged commit 6a99d8a into main Sep 6, 2026
1 check passed
@jmnote
jmnote deleted the chore/mathjax-v4 branch September 6, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant