[Do not review] Use MathJax 4.0.0-beta.3

This commit is contained in:
Daniel J. Geiger 2023-09-30 11:56:02 -05:00
parent ef0fcc1537
commit baf3ab7d81
6 changed files with 263 additions and 104 deletions

View file

@ -0,0 +1,10 @@
// When building MathJax 4.0-beta from source within the Excalidraw tree, some
// import paths don't properly translate from `ts/` to `mjs/`. This makes the
// Excalidraw build process parse MathJax TypeScript files. The resulting error
// messages do not occur if MathJax was built from source outside the
// Excalidraw tree. The following regexp eliminates those error messages.
require("replace-in-file").sync({
files: "node_modules/mathjax-full/mjs/**/*",
from: /mathjax-full\/ts/g,
to: "mathjax-full/mjs",
});