pandoc/test/command/1126.md
John MacFarlane a2c4261b32 HTML reader: allow enabling raw_tex extension.
This now allows raw LaTeX environments, `\ref`, and `\eqref` to
be parsed (which is helpful for translation HTML documents using
MathJaX).

Closes #1126.
2018-08-24 18:04:00 -07:00

419 B

% pandoc -f html -t latex
\begin{eqnarray}
A&=&B,\\
C&=&D
\end{eqnarray}
^D
\textbackslash{}begin\{eqnarray\}
A\&=\&B,\textbackslash{}\textbackslash{} C\&=\&D
\textbackslash{}end\{eqnarray\}
% pandoc -f html+raw_tex -t latex
<p>See \eqref{myeq}.</p>
\begin{eqnarray}
A&=&B,\\
C&amp;=&amp;D
\\label{myeq}
\end{eqnarray}
^D
See \eqref{myeq}.

\begin{eqnarray}
A&=&B,\\
C&=&D
\\label{myeq}
\end{eqnarray}