pandoc-crossref-0.3.20: test/m2m/subfigures-grid/expect.md
You can define subfigures:
:::: {#fig:subfigures .figure .subfigures}
+:---------------------------:+:----------------------------:+:----------------------------:+
| {#fig:subfig1 | {#fig:subfig2 | {width="100%"} |
| width="100%"} | width="100%"} | |
+-----------------------------+------------------------------+------------------------------+
| {#fig:subfig4 | {width="100%"} | {#fig:subfig6 |
| width="100%"} | | width="100%"} |
+-----------------------------+------------------------------+------------------------------+
| {#fig:subfig7 | {width="100%"} | {#fig:subfig9 |
| width="100%"} | | width="100%"} |
+-----------------------------+------------------------------+------------------------------+
::: caption
Figure 1: Caption. a --- 1, b --- 2, c --- 3, d --- 4, e --- 5, f --- 6,
g --- 7, h --- 8, i --- 9
:::
::::
:::: {#fig:subfigures2 .figure .subfigures}
+:--------------------------------------------------------------------:+
| {#fig:subfig21} |
+----------------------------------------------------------------------+
| {#fig:subfig22} |
+----------------------------------------------------------------------+
|  |
+----------------------------------------------------------------------+
| {#fig:subfig24} |
+----------------------------------------------------------------------+
|  |
+----------------------------------------------------------------------+
| {#fig:subfig26} |
+----------------------------------------------------------------------+
| {#fig:subfig27} |
+----------------------------------------------------------------------+
|  |
+----------------------------------------------------------------------+
| {#fig:subfig29} |
+----------------------------------------------------------------------+
::: caption
Figure 2: Caption. a --- 1, b --- 2, c --- 3, d --- 4, e --- 5, f --- 6,
g --- 7, h --- 8, i --- 9
:::
::::
Figures themselves can be referenced fig. 2, as well as individual
subfigures: figs. 1 (a), 1 (b), 2 (i)