# Figure (Image) Captions

**URL:** <https://talk.commonmark.org/t/figure-image-captions/1851>\
**Category:** Spec\
**Created:** [August 26, 2015, 8:38pm UTC](https://talk.commonmark.org/t/figure-image-captions/1851 "2015-08-26T20:38:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToniWonKanobi](https://talk.commonmark.org/user_avatar/talk.commonmark.org/toniwonkanobi/32/777_2.png) [@ToniWonKanobi](https://talk.commonmark.org/u/ToniWonKanobi)\
**Post date:** [August 26, 2015, 8:38pm UTC](https://talk.commonmark.org/t/figure-image-captions/1851/1 "2015-08-26T20:38:14Z")

</div>

In my recent reply to the post regarding table syntax in the CommonMark spec, I thought it wise to contribute my thoughts regarding figure (image) captions `<figcaption>`.

AFAIK, none of the Markdown specs, save for Fletcher Penney’s MultiMarkdown, have incorporated syntax parsing of image captions.

The current trend for most blogs (and for news in general) is to be as media-centric as possible. While Gruber’s original “spec” for image syntax in Markdown was not very robust, we must remember that was from a time when the focus of most blogs was _not_ images/videos, as is the case today. Therefore, we should relegate image syntax to the back burner, as Gruber appears to have done over 10 years ago.

Images should be in the Spec, not an Extension.

Here’s Penney’s [syntax](https://rawgit.com/fletcher/human-markdown-reference/master/index.html) for [image captions](https://github.com/fletcher/MultiMarkdown/wiki/MultiMarkdown-Syntax-Guide#image-support), and what I suggest CommonMark incorporate:

```auto
![This is the figure caption][fig_id]

[fig_id]: mmd.png "This is where the title goes" height=45px width=120px

```

Gets parsed to

```auto
<figure>
    <img src="mmd.png" alt="This is the figure caption" id="fig_id" title="This is where the title goes" style="height:45px;width:120px;">
    <figcaption>This is the figure caption</figcaption>
</figure>

```

Not too difficult, and since the image attributes are placed in the reference section, readability of the source Markdown is not too fugly.

---

<div class="post-metadata">

**Author:** ![Crissov](https://talk.commonmark.org/user_avatar/talk.commonmark.org/crissov/32/1455_2.png) [@Crissov](https://talk.commonmark.org/u/Crissov)\
**Post date:** [August 27, 2015, 8:45am UTC](https://talk.commonmark.org/t/figure-image-captions/1851/2 "2015-08-27T08:45:57Z")

</div>

This is basically a duplicate of [Image tag should expand to figure when used with title](http://talk.commonmark.org/t/image-tag-should-expand-to-figure-when-used-with-title/265).

---

<div class="post-metadata">

**Author:** ![ToniWonKanobi](https://talk.commonmark.org/user_avatar/talk.commonmark.org/toniwonkanobi/32/777_2.png) [@ToniWonKanobi](https://talk.commonmark.org/u/ToniWonKanobi)\
**Post date:** [August 27, 2015, 2:06pm UTC](https://talk.commonmark.org/t/figure-image-captions/1851/3 "2015-08-27T14:06:20Z")

</div>

Essentially, yes. (Though slightly more robust.)

---

<div class="post-metadata">

**Author:** ![Brian\_Lalonde](https://talk.commonmark.org/user_avatar/talk.commonmark.org/brian_lalonde/32/1565_2.png) [@Brian\_Lalonde](https://talk.commonmark.org/u/Brian_Lalonde)\
**Post date:** [August 28, 2015, 5:06am UTC](https://talk.commonmark.org/t/figure-image-captions/1851/4 "2015-08-28T05:06:48Z")

</div>

Though still limited to images only.

---

<div class="post-metadata">

**Author:** ![ToniWonKanobi](https://talk.commonmark.org/user_avatar/talk.commonmark.org/toniwonkanobi/32/777_2.png) [@ToniWonKanobi](https://talk.commonmark.org/u/ToniWonKanobi)\
**Post date:** [August 28, 2015, 6:18am UTC](https://talk.commonmark.org/t/figure-image-captions/1851/5 "2015-08-28T06:18:07Z")

</div>

Regrettably, I posted this only _after_ realizing that there was a request for a more general syntax. Should I just delete this?

---

<div class="post-metadata">

**Author:** ![riking](https://talk.commonmark.org/user_avatar/talk.commonmark.org/riking/32/23_2.png) [@riking](https://talk.commonmark.org/u/riking)\
**Post date:** [September 2, 2015, 4:49am UTC](https://talk.commonmark.org/t/figure-image-captions/1851/6 "2015-09-02T04:49:50Z")

</div>

Closed on September 2, 2015, 4:49am UTC


