Open matklad opened 1 year ago
it's on the converter to auto-magically treat single-image paragraphs as block images
This is what pandoc currently does (and has done for a long time) -- it's the implicit_figures
extension.
However, we've realized (also for a long time) that it would be better to have an explicit markup for block figures.
https://github.com/jgm/pandoc/issues/3177
IMO the right syntax is fairly obvious:
{width=18cm}
!!!
![Alt text](path/to/image.ext)
: Caption goes here
!!!
Of course with 3 being the minimal number of bangs in the fence.
Note this has some overlap with #28
Would something as simple as having multiple !
be ok?
!![block level image](path/to/image.ext)
It seems like this issue is related to #31 , no? I'd assume that a figure would be a block-level element that would likely contain one or more images.
The intention here is for the image to be a block-level element. We however wrap it in a paragraph in this case:
AsciiDoctor have separate sytaxes for inline-vs-block images:
image:url
vsimage::url
. But presumably we can just notice that the image stands alone and not wrap it into a paragraph?Or maybe this already is working as intended, and it's on the converter to auto-magically treat single-image paragraphs as block images?