# Image with link inside - Example 459 is not very consistent

**URL:** <https://talk.commonmark.org/t/image-with-link-inside-example-459-is-not-very-consistent/1020>\
**Category:** Spec\
**Created:** [January 20, 2015, 10:48am UTC](https://talk.commonmark.org/t/image-with-link-inside-example-459-is-not-very-consistent/1020 "2015-01-20T10:48:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jgm](https://talk.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [January 20, 2015, 11:40am UTC](https://talk.commonmark.org/t/image-with-link-inside-example-459-is-not-very-consistent/1020/2 "2015-01-20T11:40:02Z")

</div>

+++ textnut [Jan 20 15 11:00]:

> Example 459
> 
> ```auto
> ![foo [bar](/url)](/url2)
> <p><img src="/url2" alt="foo bar" /></p>
> 
> ```
> 
> Base on spec, [bar] is interpreted to link then convert to literal text because it is inside image text. Is it good behaviour?
> 
> I think image text can not embed link is good option. So it render as:
> 
> ```auto
> <p>![foo <a href="/url">bar</a>](/url2)</p>
> 
> ```

As I say in this [note](http://talk.commonmark.org/t/0-12-changes-to-lists-and-images/891),

> Links inside image descriptions (and even inline images) might make sense if  
> the description is used as an image caption (as it is for links in  
> paragraphs by themselves, in some Markdown extensions). When the  
> description is used as the image’s alt text, a plain-text version of  
> the embedded link or image can be substituted.

I couldn’t think of any use for links within links, hence the asymmetry.  
However, see [Precedence of link within link · Issue #193 · commonmark/commonmark-spec · GitHub](https://github.com/jgm/CommonMark/issues/193)

---

_[View the full topic](https://talk.commonmark.org/t/image-with-link-inside-example-459-is-not-very-consistent/1020)._
