arve0/markdown-it-implicit-figures

Images with Alternate Text *and* a Title

ToniWonKanobi opened this issue · 1 comments

How does markdown-it-implicit-figures deal with situations in which the image syntax contains an alternate text attribute alt and a title title?

Consider this Markdown:

![Alternate text](image_link "Title")

Will markdown-it-implicit-figures parse this with the correct alt and title attributes, like so? (figcaption to true)

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

Will markdown-it-implicit-figures parse this with the correct alt and title attributes, like so?

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