aboutsummaryrefslogtreecommitdiff
path: root/test/command/3577.md
blob: bfeb86eaa9fba0bc74304ecd930be84b442aabe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
```
% pandoc -f latex -t html5
\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>
```