Hi,
I am creating an extension to render figures instead of simple images
<figure>
<img src="https://octodex.github.com/images/stormtroopocat.jpg" alt="Stormtroopocat" title="The Stormtroopocat">
<figcaption>A Stormtroopocat at work</figcaption>
</figure>
My first idea was to have such a markdown data:

*A Stormtroopocat at work*
The mardown above will render the following HTML:
<p>
<img src="https://octodex.github.com/images/stormtroopocat.jpg" alt="Stormtroopocat" title="The Stormtroopocat">
<em>A Stormtroopocat at work</em>
<p>
Then, I should be able to the stucture p >img,em and convert it into figure > img,figcaption.
Am I correct or totally wrong?
Hi,
I am creating an extension to render figures instead of simple images
My first idea was to have such a markdown data:
The mardown above will render the following HTML:
Then, I should be able to the stucture
p >img,emand convert it intofigure > img,figcaption.Am I correct or totally wrong?