Hi Netlify support (and others who may potentially have experience in this issue),
I’m having some issues loading MathJax 3 on my Hugo website deployed via Netlify. MathJax loads properly when I preview my website locally. However, remotely, things do not work as expected. I have read that Netlify may interrupt rendering of math by pruning $ symbols (no longer can find a source for that at the moment, so that could be wrong) and I have also read the following post from last year (Enabling MathJax without using CMS - #5 by novice), so I was wondering whether the issue could be tied to Netlify. Looking at the page in question through Firefox and Safari consoles (Arranging a Two-Parameter Gamma Distribution into Exponential Family Form | Hua (Wally) Xie's Digital Outpost [Site In Progress]), the error messages seem to correspond to the Polyfill.js library, and I do not see any errors associated with MathJax.
Thank you very much for any possible help!
EDIT: As an addendum, deleting the Polyfill line from the html file that loads MathJax did not do anything, and it looks like MathJax just does not load at all from looking at the console output. Was thinking perhaps something was blocking its loading.
Thank you for getting back to me. Yes, am stumped for why MathJax is not loading at all, not even an error message from the console about a failure to load. Here is my repository, thanks: https://github.com/wallyxie/wallyxie.github.io
I figured out the problem. At some point, the theme stopped updating because in an attempted re-install, I used git clone over a previous git submodule. Thank you very much for your help, the issue is fixed now.
Hi @rahulgopinath , welcome back to the forums! Sorry to hear you are having issues with your site. It’s likely an issue with your code.
These seems to be a similar issue with other people using MathJax on a Hugo framework. Can you give this thread a read and let me know if adding backslashes help resolve the the code displays?
If that doesn’t help can you please share you repository, site name and build log?