3 ms·
KaTeX supports server-side Node rendering pretty easily. https://katex.org/docs/node.html https://katex.org/docs/node.html Maybe MathJax does too, but I haven't
by vortico 5y ago
KaTeX supports server-side Node rendering pretty easily. https://katex.org/docs/node.html https://katex.org/docs/node.html
Maybe MathJax does too, but I haven't checked.
I use this on https://vcvrack.com/manual/DSP https://vcvrack.com/manual/DSP to parse $inline$ and $$block$$ TeX into MathML with a couple lines of server-side code (simplified for readability):
html = require('markdown-it')({html: true, linkify: true, typographer: true})
.use(require('markdown-it-texmath'), {engine: 'katex', delimiters: 'dollars'})
.render(body)