It worked very well for me when I was in a similar situation.
Add these scripts to <head>
<script type="text/x-mathjax-config">MathJax.Hub.Config({ config: ["MMLorHTML.js"], jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"], extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"], TeX: { extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] } });</script> <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
Then
add this <script> after closing the <body>
<script type="text/javascript"> MathJax.Hub.Configured() </script>
See documentation
or
You can see this wonderful example. https://math.stackexchange.com/ .. Check out the source math.stackexchange..It will be very helpful ..
UPDATE
See page number 54 in this link .. He says
MathJax supports MathML3.0 math tags, with some limitations. MathML support is still being actively developed, so some tags are not yet implemented, and some functions are not fully implemented. Disadvantages include:
• There is no support for aligning groups in tables.
• Not all attributes are supported for tables. For example, columnspan and rowspan are not yet implemented.
• Experimental support for elementary math tags: mstack, mlongdiv, msgroup, msrow, mscarries and mscarry. (See the mml3 extension below.)
• Experimental support for bidirectional mathematics.