Arguably, images that are the only content of a paragraph, i.e. have empty lines before and after, should be made a figure instead, if the output format supports this – HTML does only after version 4.01 with the introduction of <figure>
.
With the syntax for images supporting titles in http://jgm.github.io/stmd/spec.html#images it would be great if the image tag would expand to a figure with caption like:

<figure>
<img src="/url" alt="alt text">
<figcaption>My caption</figcaption>
</figure>
This is a departure from what is currently out there but an often requested feature that should find its way into the spec somehow (even with an alternative syntax).
Hello everyone. I’m a new user, although not a new reader of this forum. I would like to propose a new extension addressing figure-like constructs in markdown.
First my stance on markdown: what is neat in markdown is the fact that it reuses well ingrained written conventions in order to provide semantics and do a good job interpreting as HTML. In several discussions talking about figurification (sorry I made up a word) and adding captions I was struck by the unnatural constructs proposed to do …
4 Likes