Use auto-math-recognize mode ( here and text is mixed ) or surround ASCIIMath formulas with left-quotes: or LaTeX formulas with $-signs .
And here is a simple graph:
Note: this page uses a relative link to ASCIIMathML.js, so the script should be in the same folder as this sample file.