mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-30 17:59:17 +08:00
42 lines
873 B
Markdown
42 lines
873 B
Markdown
```
|
|
% 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 data-latex-placement="ht">
|
|
<figure>
|
|
<img src="img1.jpg" />
|
|
<figcaption>Caption 1</figcaption>
|
|
</figure>
|
|
<figure>
|
|
<img src="img2.jpg" />
|
|
<figcaption>Caption 2</figcaption>
|
|
</figure>
|
|
<figcaption>Subfigure with Subfloat</figcaption>
|
|
</figure>
|
|
```
|
|
```
|
|
% pandoc -f latex -t html5
|
|
\begin{figure}[ht]
|
|
\includegraphics{img1.jpg}
|
|
\caption{Caption 3}
|
|
\end{figure}
|
|
^D
|
|
<figure data-latex-placement="ht">
|
|
<img src="img1.jpg" />
|
|
<figcaption>Caption 3</figcaption>
|
|
</figure>
|
|
```
|