I am very happy to announce a major upgrade to our Discourse Math plugin!
Special thanks goes to @mcmcclur who helped test and build much of the new and upgraded discourse-math.
This is a very significant change – we upgraded all the way from version 2.x up to version 4.1 of MathJax, catching up with years of features and advances.
Additionally, we amended our design to make it significantly easier to upgrade the plugin in the future.
Our new iteration is much friendlier to LLM outputs, which prefer using LaTeX-style math inlines such as e=mc^2.
The plugin remains very configurable – you can use MathJax or KaTeX for math rendering and even disable the handling of \( if you wish.
Some Fun Examples to Show Off MathJax 4.1
The Quadratic Formula:
Euler’s Identity:
Maxwell’s Equations:
A Colorful Integral:
An Infinite Series:
New in MathJax 4 – The \U{} Macro:
You can now insert Unicode characters directly into TeX input! For example:
$$A \U{229E} B = C$$
This produces U+229E (⊞, a squared plus).