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

feat: upgrade to MathJax v4 #27

Merged
merged 9 commits into from
Sep 4, 2023
Merged

feat: upgrade to MathJax v4 #27

merged 9 commits into from
Sep 4, 2023

Conversation

pkra
Copy link
Member

@pkra pkra commented Aug 11, 2023

  • update initial setup
  • add CJS build (do we care?)
  • fix browser build

Resolves #26.

Adjusts to MathJax v4.
* package.json
  * set type to module
  * upgrade dependencies
* tsconfig: switch to ESM output (only)
* test
  * base.js
    * switch to ESM
    * await mj (which is now async)
  * mjs.js
    * switch to ESM
    * adjust to v4 (fonts, async etc)

Part of #44
@pkra pkra self-assigned this Aug 11, 2023
@pkra
Copy link
Member Author

pkra commented Aug 22, 2023

Very partial progress documented at mathjax/MathJax#3086 (comment)

@pkra
Copy link
Member Author

pkra commented Aug 24, 2023

More partial progress -- see the issue for a write up.

Work in progress, cf. the discussion at mathjax/MathJax#3086
@pkra
Copy link
Member Author

pkra commented Aug 25, 2023

More partial progress, this time with actual an commit.

Adjusts import paths to their (resolved) paths; this works around a
limitation in MathJax's build tools for client-side use.
Adds file used by MathJax to build the "component" for client-side use.
Manually checked for visual changes.
@pkra pkra merged commit ab7ffe4 into main Sep 4, 2023
@pkra
Copy link
Member Author

pkra commented Sep 4, 2023

Ugh - no commit was marked breaking.

pkra added a commit that referenced this pull request Sep 4, 2023
MathJax v4 compatibility marks a breaking change in lieu of #26 and #27.

BREAKING CHANGE: Drops support for MathJax v3, replaces CJS with ESM.
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.

MathJax v4 compatibility
1 participant