docascod / DocsAsCode

https://docascod.github.io/howto/
9 stars 4 forks source link

inline vs block images #29

Closed docsAsCode closed 3 years ago

docsAsCode commented 4 years ago

RST and asciidoc make difference between inline and block images. first are inside text, others are alone in the line. Block image can be horizontally aligned.

In RST, inline are 'image' and block are 'figure'. In asciidoc inline are 'image:' and block 'image::'.

When converting RST to asciidoc, pandoc daesn't generate block image, only inline. An issue, ask change : https://github.com/jgm/pandoc/issues/6538

This issue follows pandoc issue.

docsAsCode commented 4 years ago

Pandoc only generates inline image, so we can transform in bloc if this image directive starts the line