Check out this thread that addresses the issue. It appears that LaTeX can only be properly rendered through MathJax when saved as an HTML file, but if you are able to do that, this should give you what you need!
1 Like