This worked really well for me when i was in a similar situation..
Add these scripts in the <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 the closing of the <body>
tag
<script type="text/javascript">
MathJax.Hub.Configured()
</script>
See the documentation
or
you can see this wonderfull example.. https://math.stackexchange.com/ .. Check the source of math.stackexchange..It will be really helpfull..
UPDATE
See page no 54 in this link..It says
MathJax supports the MathML3.0 mathematics tags, with some
limitations. The MathML support is still under active development, so
some tags are not yet implemented, and some features are not fully
developed, but are coming. The deficiencies include:
• No support for
alignment groups in tables.
• Not all attributes are supported for
tables. E.g., columnspan and rowspan are not implemented yet.
•Experimental support for the elementary math tags: mstack, mlongdiv,
msgroup, msrow, mscarries, and mscarry. (Via the mml3 extension, see
below.)
• Experimental support for bidirectional mathematics.
MathJax.Hub.Configured()
after the endof the<body>
tag... – Demark