How can I use picture tag in CommonMark (MarkDown)?

Viewed 26

I use commonmark to use MarkDown in my PHP project. I want to use WEBP in my project but some browsers not support it, so I want to use <picture> tag to use both WEBP and JPG formats.

<picture>
  <source type="image/webp" srcset="flower.webp">
  <source type="image/jpeg" srcset="flower.jpg">
  <img src="flower.jpg" alt="">
</picture>

How can I use this in CommonMark?

0 Answers
Related