This patch applies on top of the mathstodon branch maintained by christianp. It's only useful if you have something rendering LaTeX inside status content. The mathstodon branch uses MathJax for this.
You need a copy of MathJax 3 in the folder public/MathJax
.