CharlieMcVicker / mathjax-react

React Component Library for MathJax
33 stars 14 forks source link

Re-render MathJax after <Link> Click (Next.js) #38

Open LordoCreations opened 1 year ago

LordoCreations commented 1 year ago
image

When I use next/link to load a page, the MathJax does not render properly

vs. when I reload the page

image
manal-t07 commented 1 year ago

Have a look at this similar issue: https://github.com/mathjax/MathJax/issues/1989 https://stackoverflow.com/questions/25753125/reload-mathjax-forcing-typesetting-once-again

I was having a similar issue while rendering mathjax in the React app, I solved it by adding scripts. You can have a look at this: https://stackoverflow.com/questions/73919795/wrapping-the-mathjax-react-expression/73924172#73924172