# Markdown in figure captions

**URL:** https://discourse.gohugo.io/t/markdown-in-figure-captions/10523
**Category:** Uncategorized
**Created:** [February 13, 2018, 12:27pm UTC](https://discourse.gohugo.io/t/markdown-in-figure-captions/10523 "2018-02-13T12:27:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)
#### Post date: [February 13, 2018, 12:27pm UTC](https://discourse.gohugo.io/t/markdown-in-figure-captions/10523/1 "2018-02-13T12:27:09Z")

</div>

Hello,

The inbuilt `figure` shortcode does not recognize markdown emphasis characters in captions.

So below:

```auto
{{< figure src="/images/org-mode-unicorn-logo.png" caption="A unicorn --- **green** unicorn!" >}}

```

or

```auto
{{% figure src="/images/org-mode-unicorn-logo.png" caption="A unicorn --- **green** unicorn!" %}}

```

result in:

![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/7/7cdbad74d999ab56d8084060088f07712c4f6332.png)

The Markdown emphasis is especially useful in technical blogs where you might have a caption as:

```
Output when you run `some_command` 

```

… which you would like to see rendered as:

Output when you run `some_command`

* * *

**Should I open an issue for this?**

---

<div class="post-metadata">

### Author: ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)
#### Post date: [February 13, 2018, 12:39pm UTC](https://discourse.gohugo.io/t/markdown-in-figure-captions/10523/2 "2018-02-13T12:39:37Z")

</div>

> <https://github.com/gohugoio/hugo/pull/4405>

> <https://github.com/gohugoio/hugo/issues/4406>
