Next.js Discord

Discord Forum

How to configure/use MathJax in modern Next.js app?

Unanswered
Beauceron posted this in #help-forum
Open in Discord
BeauceronOP
Can someone point me towards how to configure and use MathJax in a modern Next.js app? I'm assuming this is the best way to render mathematical content in a next.js web app but I'm finding examples of how to proceed hard to find. Thank you.

7 Replies

i guess this could help, it's in their package.js
This does not use the App router, but I assume you know how to adjust to it
seems solid and updated recently
BeauceronOP
That latter one looks like an approach I might try. Thanks. I think I saw that one from googling before but didn't identify it as one of the cleaner solutions from what I was looking at.
I wish there were some way to just mark a block of html with something to tell next.js to leave it alone, as math ml works in most browsers natively. next.js however, will choke on it.