XHTML Header: <script type="text/x-mathjax-config">
MathJax.Hub.Config({ TeX: { equationNumbers: {autoNumber: "AMS"} } });
</script>
When included as the first line in a Marked document, the following equation will be automatically numbered:
\begin{equation}
E = mc^2
\end{equation}
…but this one will not:
$$ E = mc^2 $$