Skip to content

Generate <figure> and <figcaption> when an image has a caption #17

@stcarrez

Description

@stcarrez

When an image has a caption, we should generate a <figure> and a <figurecaption>

Example for dotclear:

((https://test.com/photo.jpg|Photo|C|Photo long description))

we should have:

<figure class="wiki-img-center">
  <img src="https://test.com/photo.jpg" alt="Photo" />
  <figcaption>Photo long description</figcaption>
</figure>

And for Mediawiki:

[[Image:study_current_measure1.png|thumb||left|Current Measurement]]

We could have:

<figure class="wiki-img-thumb wiki-img-left">
  <img src="study_current_measure1.png" alt="Current Measurement" />
  <figcaption>Current Measurement</figcaption>
</figure>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions