arve0/markdown-it-implicit-figures

Reference-style Image Syntax

Closed this issue · 2 comments

How does markdown-it-implicit-figures deal with reference-style image syntax?

Consider the following Markdown:

![Alternate text][1]

[1]: image_link

Does the above Markdown get correctly parsed like this (figcaption set to true)

<figure>
    <img src="image_link" alt="Alternate text">
    <figcaption>Alternate text</figcaption>
</figure>
arve0 commented

Does the above Markdown get correctly parsed like this (figcaption set to true)

Yes. https://jsfiddle.net/arve0/1kk1h6p3/2/

Maybe you should document that in the README.