Closed rothos closed 9 years ago
You have to use control sequences to mark formulas:
A formula \\( E = m c^2 \\) inside text.
A formula $E = m c^2$ inside text.
A separate formula:
\\[
\begin{equation}
E = m c^2
\end{equation}
\\]
A separate formula:
$$\begin{equation}
E = m c^2
\end{equation}$$
Please note that when using $
there must be no space after the opening $
and no space before the closing $
. Everything between the control sequences will be left untouched by MultiMarkdown.
If you don't use the control sequences your input is treated as normal text and thus the conversion to super-/subscript is correct.
The result is:
<p>A formula <span class="math">\( E = m c^2 \)</span> inside text.</p>
<p>A formula <span class="math">\(E = m c^2\)</span> inside text.</p>
<p>A separate formula:</p>
<p><span class="math">\[
\begin{equation}
E = m c^2
\end{equation}
\]</span></p>
<p>A separate formula:</p>
<p><span class="math">\[\begin{equation}
E = m c^2
\end{equation}\]</span></p>
Explanation by @mn4367 is correct. If you demarcate the text as MMD Math, the other rules are not applied. Otherwise, it is (correctly) treated as regular text to be processed by MMD.
Specifying an equation like
is valid Mathjax, but MultiMarkdown converts it to
which breaks the formatting of the equation.
Is there a way to disable the super-/subscript conversion in MultiMarkdown? Is disabling particular features possible?