I'm using pandoc to be converted to LaTeX and in a few cases I enter raw latex code, which is great, since pandoc just passes it through.
However, it seems that when it comes across a \begin macro, starting an environment, pandoc thinks everything in the environment is raw LaTeX and stops converting.
Some *italics* text.
\begin{center}
Some centered *italics* text.
\end{center}
Becomes in the LaTeX output:
Some \emph{italics} text.
\begin{center}
Some centered *italics* text.
\end{center}
When I'm hoping for is to convert the markdown inside the center environment too, like so:
Some \emph{italics} text.
\begin{center}
Some centered \emph{italics} text.
\end{center}
Any help, suggestions for a workaround, or alternative solutions would be highly appreciated.