Skip to content

Question: how to render a <figure>? #699

Description

@Spomky

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:

![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
*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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral questions about the project or usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions