Math not rendering in embedded posts

It looks like the solution is in the last comment on the Github thread that you referenced:

https://github.com/kasperpeulen/discourse-mathjax/issues/21#issuecomment-471256399

Have you tried it?