critical MathJax bug with 4.1.2

13 views
Skip to first unread message

Alex Jordan

unread,
Jun 17, 2026, 6:48:36 PM (3 days ago) Jun 17
to prete...@googlegroups.com
PreTeXt is using MathJax 4.1.2. This version (not say 4.1.1) introduced a bug where certain expressions can cause MathJax to crash. See this MathJax issue and linked issues:


The offending input in that example may look like something you'd never do, but it only needs to be a subsequence of your input string in order for the crash to happen. And as you can see from the other linked issues, the conditions to trigger this are a bit specific, but not specific to say, using \nabla.

This is either something to be aware of, or PreTeXt could revert to 4.1.1 for now. Probably want to upgrade past 4.1.2 as soon as this is fixed though.

Alex Jordan

unread,
Jun 17, 2026, 9:38:44 PM (3 days ago) Jun 17
to prete...@googlegroups.com
When I posted my last message about this, it was a somewhat academic issue. A WeBWorK user with somewhat obscure math syntax in use had hit this issue, and that led to my post on the MathJax forum.

Just now though, while working on one of my PreTeXt projects, I find a page is freezing in the same way. I manually changed the page to load MJ 4.1.1 and then things are fine. So I can now report that this issue is affecting a PTX project. (I don't know what specific bit of math on the page is causing the freeze though, it's too big of a page.)
Reply all
Reply to author
Forward
0 new messages