pandoc/test/command/3577.md
John MacFarlane 013fd1c6b6 Make sure \write18 is parsed as raw LaTeX.
The change is in the LaTeX reader's treatment of raw commands,
but it also affects the Markdown reader.
2017-07-12 14:50:49 +02:00

800 B

% pandoc -f latex -t html5 --quiet
\begin{figure}[ht]
    \begin{subfigure}{0.45\textwidth}
        \centering
        \includegraphics{img1.jpg}
        \caption{Caption 1}
    \end{subfigure}

    \begin{subfigure}{0.45\textwidth}
        \centering
        \includegraphics{img2.jpg}
        \caption{Caption 2}
    \end{subfigure}
    \caption{Subfigure with Subfloat}
\end{figure}
^D

<figure>
<img src="img1.jpg" alt="Caption 1" /><figcaption>Caption 1</figcaption>
</figure>

<figure>
<img src="img2.jpg" alt="Caption 2" /><figcaption>Caption 2</figcaption>
</figure>
% pandoc -f latex -t html5
\begin{figure}[ht]
    \includegraphics{img1.jpg}
    \caption{Caption 3}
\end{figure}
^D
<figure>
<img src="img1.jpg" alt="Caption 3" /><figcaption>Caption 3</figcaption>
</figure>