# Image tag should expand to figure when used with title

**URL:** <https://talk.commonmark.org/t/image-tag-should-expand-to-figure-when-used-with-title/265>\
**Category:** Spec\
**Created:** [September 4, 2014, 9:52am UTC](https://talk.commonmark.org/t/image-tag-should-expand-to-figure-when-used-with-title/265 "2014-09-04T09:52:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![xoofx](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/xoofx/32/1424_2.png) [@xoofx](https://talk.commonmark.org/u/xoofx)\
**Post date:** [March 24, 2016, 12:05am UTC](https://talk.commonmark.org/t/image-tag-should-expand-to-figure-when-used-with-title/265/7 "2016-03-24T00:05:53Z")

</div>

I have been prototyping an extension for figures using a block structure similar to fenced code block using the character sequence `^^^`:

```auto
^^^
This is a text
> With a block quote and an ![image](/url "my title")
^^^ My caption

```

is generating this:

```auto
<figure>
  <p>This is a text</p>
  <blockquote><p>With a block quote and an <img src="/url" alt="image" title="my title"><p>
  </blockquote>
  <figcaption>My caption</figcaption>
</figure>

```

The caption can be put on the opening block (on the first `^^^`) or on the closing.

---

_[View the full topic](https://talk.commonmark.org/t/image-tag-should-expand-to-figure-when-used-with-title/265)._
