The background of my question is that I'm using Obsidian as my primary markdown editor, which has a live preview editing mode. Embedded markdown figure links are directly rendered in the live preview editing mode. The syntax above would show the images in live preview (which would be my preferred option) while placing the subfigures in a div block will not, since the markdown code inside the div will by interpreted as normal text and not as markdown.
It would also be a bit more consistent, because the same syntax works for tables.
Hi. Fenced divs should work fine for subfigures, pandoc-crossref doesn't even know whether the div is fenced or not. You do need a paragraph break before caption, however. Also, : is superfluous, the last paragraph in subfigure div is interpreted as the caption verbatim. So this should work:
Could you support the fenced div/span syntax used for tables also for subfigures in addition to a
The background of my question is that I'm using Obsidian as my primary markdown editor, which has a live preview editing mode. Embedded markdown figure links are directly rendered in the live preview editing mode. The syntax above would show the images in live preview (which would be my preferred option) while placing the subfigures in a div block will not, since the markdown code inside the div will by interpreted as normal text and not as markdown.
It would also be a bit more consistent, because the same syntax works for tables.
Hi. Fenced divs should work fine for subfigures, pandoc-crossref doesn't even know whether the div is fenced or not. You do need a paragraph break before caption, however. Also,
:
is superfluous, the last paragraph in subfigure div is interpreted as the caption verbatim. So this should work: