MathJax is an open source JavaScript display engine for mathematics that works in all modern browsers.MathJax renders mathematics dynamically so that formulas and symbols are nicely integrated into the surrounding text – with matching font size, margins, and baseline. So, in other words: it should look right.MathJax supports two typesetting styles: inline and paragraph (or “display”) equations. For inline equations, MathJax tries hard to maintain the inter-line spacing. This means things like fractions and roots are vertically compressed, and smaller fonts are used. Paragraph equations are shown as a separate paragraph and can be displayed with more space and slightly larger fonts.
Core Java Script