Skip to content

I need help with a vercel deployment. #8123

Answered by AdamowiczPawel
snake-py asked this question in Help
Discussion options

You must be logged in to vote

I managed to solve the problem with mathjax version 3 package instead of mathjax-node. I paste the code below, maybe it will be useful to someone. Mathjax in version 3 works without errors with vercel.

import { mathjax } from "mathjax-full/js/mathjax.js";
import { MathML } from "mathjax-full/js/input/mathml.js";
import { SVG } from "mathjax-full/js/output/svg.js";
import { liteAdaptor } from "mathjax-full/js/adaptors/liteAdaptor.js";
import { RegisterHTMLHandler } from "mathjax-full/js/handlers/html.js";

const adaptor = liteAdaptor();
RegisterHTMLHandler(adaptor);

const mathjax_document = mathjax.document("", {
  InputJax: new MathML(),
  OutputJax: new SVG({ fontCache: "local" }),
});
…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@AdamowiczPawel
Comment options

@snake-py
Comment options

@AdamowiczPawel
Comment options

@AdamowiczPawel
Comment options

Answer selected by amyegan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants