diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2ec25da2d..0994d995e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -255,6 +255,7 @@ Ranjit Odedra Eltaurus jariji Francisco Esteva +Ocin4ever ******************** diff --git a/build/configure/src/web.rs b/build/configure/src/web.rs index ef2d268bb..ef13f9c87 100644 --- a/build/configure/src/web.rs +++ b/build/configure/src/web.rs @@ -421,48 +421,114 @@ fn build_and_check_mathjax(build: &mut Build) -> Result<()> { } pub const MATHJAX_FILES: &[&str] = &[ - "mathjax/es5/a11y/assistive-mml.js", - "mathjax/es5/a11y/complexity.js", - "mathjax/es5/a11y/explorer.js", - "mathjax/es5/a11y/semantic-enrich.js", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff", - "mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff", - "mathjax/es5/tex-chtml-full.js", - "mathjax/es5/sre/mathmaps/de.json", - "mathjax/es5/sre/mathmaps/en.json", - "mathjax/es5/sre/mathmaps/es.json", - "mathjax/es5/sre/mathmaps/fr.json", - "mathjax/es5/sre/mathmaps/hi.json", - "mathjax/es5/sre/mathmaps/it.json", - "mathjax/es5/sre/mathmaps/nemeth.json", + "mathjax/a11y/assistive-mml.js", + "mathjax/a11y/complexity.js", + "mathjax/a11y/explorer.js", + "mathjax/a11y/semantic-enrich.js", + "mathjax/a11y/speech.js", + "mathjax/a11y/sre.js", + "mathjax/adaptors/jsdom.js", + "mathjax/adaptors/linkedom.js", + "mathjax/adaptors/liteDOM.js", + "mathjax/core.js", + "mathjax/input/asciimath.js", + "mathjax/input/mml.js", + "mathjax/input/mml/entities.js", + "mathjax/input/mml/extensions/mml3.js", + "mathjax/input/mml/extensions/mml3.sef.json", + "mathjax/input/tex-base.js", + "mathjax/input/tex.js", + "mathjax/input/tex/extensions/action.js", + "mathjax/input/tex/extensions/ams.js", + "mathjax/input/tex/extensions/amscd.js", + "mathjax/input/tex/extensions/autoload.js", + "mathjax/input/tex/extensions/bbm.js", + "mathjax/input/tex/extensions/bboldx.js", + "mathjax/input/tex/extensions/bbox.js", + "mathjax/input/tex/extensions/begingroup.js", + "mathjax/input/tex/extensions/boldsymbol.js", + "mathjax/input/tex/extensions/braket.js", + "mathjax/input/tex/extensions/bussproofs.js", + "mathjax/input/tex/extensions/cancel.js", + "mathjax/input/tex/extensions/cases.js", + "mathjax/input/tex/extensions/centernot.js", + "mathjax/input/tex/extensions/color.js", + "mathjax/input/tex/extensions/colortbl.js", + "mathjax/input/tex/extensions/colorv2.js", + "mathjax/input/tex/extensions/configmacros.js", + "mathjax/input/tex/extensions/dsfont.js", + "mathjax/input/tex/extensions/empheq.js", + "mathjax/input/tex/extensions/enclose.js", + "mathjax/input/tex/extensions/extpfeil.js", + "mathjax/input/tex/extensions/gensymb.js", + "mathjax/input/tex/extensions/html.js", + "mathjax/input/tex/extensions/mathtools.js", + "mathjax/input/tex/extensions/mhchem.js", + "mathjax/input/tex/extensions/newcommand.js", + "mathjax/input/tex/extensions/noerrors.js", + "mathjax/input/tex/extensions/noundefined.js", + "mathjax/input/tex/extensions/physics.js", + "mathjax/input/tex/extensions/require.js", + "mathjax/input/tex/extensions/setoptions.js", + "mathjax/input/tex/extensions/tagformat.js", + "mathjax/input/tex/extensions/texhtml.js", + "mathjax/input/tex/extensions/textcomp.js", + "mathjax/input/tex/extensions/textmacros.js", + "mathjax/input/tex/extensions/unicode.js", + "mathjax/input/tex/extensions/units.js", + "mathjax/input/tex/extensions/upgreek.js", + "mathjax/input/tex/extensions/verb.js", + "mathjax/loader.js", + "mathjax/mml-chtml-nofont.js", + "mathjax/mml-chtml.js", + "mathjax/mml-svg-nofont.js", + "mathjax/mml-svg.js", + "mathjax/node-main-setup.mjs", + "mathjax/node-main.cjs", + "mathjax/node-main.js", + "mathjax/node-main.mjs", + "mathjax/output/chtml.js", + "mathjax/output/svg.js", + "mathjax/package.json", + "mathjax/require.mjs", + "mathjax/sre/mathmaps/af.json", + "mathjax/sre/mathmaps/base.json", + "mathjax/sre/mathmaps/ca.json", + "mathjax/sre/mathmaps/da.json", + "mathjax/sre/mathmaps/de.json", + "mathjax/sre/mathmaps/en.json", + "mathjax/sre/mathmaps/es.json", + "mathjax/sre/mathmaps/euro.json", + "mathjax/sre/mathmaps/fr.json", + "mathjax/sre/mathmaps/hi.json", + "mathjax/sre/mathmaps/it.json", + "mathjax/sre/mathmaps/ko.json", + "mathjax/sre/mathmaps/nb.json", + "mathjax/sre/mathmaps/nemeth.json", + "mathjax/sre/mathmaps/nn.json", + "mathjax/sre/mathmaps/sv.json", + "mathjax/sre/require.d.mts", + "mathjax/sre/require.mjs", + "mathjax/sre/speech-worker.js", + "mathjax/startup.js", + "mathjax/tex-chtml-nofont.js", + "mathjax/tex-chtml.js", + "mathjax/tex-mml-chtml-nofont.js", + "mathjax/tex-mml-chtml.js", + "mathjax/tex-mml-svg-nofont.js", + "mathjax/tex-mml-svg.js", + "mathjax/tex-svg-nofont.js", + "mathjax/tex-svg.js", + "mathjax/ui/lazy.js", + "mathjax/ui/menu.js", + "mathjax/ui/safe.js", ]; pub fn copy_mathjax() -> impl BuildAction { RsyncFiles { inputs: inputs![":node_modules:mathjax"], target_folder: "qt/_aqt/data/web/js/vendor/mathjax", - strip_prefix: "$builddir/node_modules/mathjax/es5", + strip_prefix: "$builddir/node_modules/mathjax", extra_args: "", } } diff --git a/package.json b/package.json index f85945cd5..775d03fac 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "lodash-es": "^4.17.21", "lru-cache": "^10.2.0", "marked": "^5.1.0", - "mathjax": "^3.1.2" + "mathjax": "^4.0.0" }, "resolutions": { "canvas": "npm:empty-npm-package@1.0.0", diff --git a/ts/editable/mathjax.ts b/ts/editable/mathjax.ts index e185d7935..b45d6ef3c 100644 --- a/ts/editable/mathjax.ts +++ b/ts/editable/mathjax.ts @@ -5,7 +5,7 @@ @typescript-eslint/no-explicit-any: "off", */ -import "mathjax/es5/tex-svg-full"; +import "mathjax/tex-svg.js"; import mathIcon from "@mdi/svg/svg/math-integral-box.svg?src"; diff --git a/ts/licenses.json b/ts/licenses.json index 95eef0cec..3c71068bc 100644 --- a/ts/licenses.json +++ b/ts/licenses.json @@ -715,7 +715,7 @@ "path": "node_modules/math-intrinsics", "licenseFile": "node_modules/math-intrinsics/LICENSE" }, - "mathjax@3.2.2": { + "mathjax@4.0.0": { "licenses": "Apache-2.0", "repository": "https://github.com/mathjax/MathJax", "path": "node_modules/mathjax", diff --git a/yarn.lock b/yarn.lock index bc1640152..af27c221f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1940,7 +1940,7 @@ __metadata: lodash-es: "npm:^4.17.21" lru-cache: "npm:^10.2.0" marked: "npm:^5.1.0" - mathjax: "npm:^3.1.2" + mathjax: "npm:^4.0.0" prettier: "npm:^3.4.2" prettier-plugin-svelte: "npm:^3.3.2" sass: "npm:<1.77" @@ -5020,10 +5020,10 @@ __metadata: languageName: node linkType: hard -"mathjax@npm:^3.1.2": - version: 3.2.2 - resolution: "mathjax@npm:3.2.2" - checksum: 10c0/26c8557f948d1ef76ce2b0bc1ad66128c9a78a7e4f3d96587f90b23dd25cfbf14c9b58a1c75a7d8d35f92b72bab054eab61873443babe646b7bfd6b40bb717e6 +"mathjax@npm:^4.0.0": + version: 4.0.0 + resolution: "mathjax@npm:4.0.0" + checksum: 10c0/8e91d59bb070420bd4c8e032cdd98f518b7e331621611021f15ff49a93df20ee300ac0f403bd6cb9c8bdbddb3a279344c412af16e47d9b4c3c328a72012636e2 languageName: node linkType: hard