Custom and standalone build with Mathjax 4

9 views
Skip to first unread message

Paul-Elliot ANGLES D'AURIAC

unread,
Feb 2, 2026, 8:55:05 AMFeb 2
to MathJax Users
Hello everyone!

I'd like some help on something I really could not do by myself. I apologize in advance, the situation is prbably not so standard.

I'm maintaining a compiler, that compiles markdown files into standalone html files: https://github.com/panglesd/slipshow

I emphasize the 'standalone" requirement: you should be able to just send the html file by email, and opening it works even offline.

So, when you write a markdown file with math inside, and compile it, mathjax has to be embedded/inlined in the html file.

I used to do that with Mathjax 3: I just had to inline the `tex-svg-full.js` file in a script tag. Hopefully the svg output does not need fonts (is that true?), and the full adds some extensions, so that works.

I'd like to switch to Mathjax 4 (for various reasons). The "-full" build is not provided anymore, and it contained the `html` extension that I need.

I could follow the docs on a custom build, but I am very unsure about what is going on there, and failed at adapting it to my usecase. I feel there should be a simpler way...

Would someone have some pointers/directions/help on how to achieve this standalone, browser-embeddable, including html extension, custom build?

Thanks in advance!
Paul-Elliot
Reply all
Reply to author
Forward
0 new messages