# Display of images in links break if they contain parenthesis

**URL:** <https://meta.discourse.org/t/display-of-images-in-links-break-if-they-contain-parenthesis/52271>\
**Category:** Bug\
**Tags:** markdown-it-review\
**Created:** [2016 年 10 月 31 日午後 9:08 UTC](https://meta.discourse.org/t/display-of-images-in-links-break-if-they-contain-parenthesis/52271 "2016-10-31T21:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2016 年 10 月 31 日午後 11:52 UTC](https://meta.discourse.org/t/display-of-images-in-links-break-if-they-contain-parenthesis/52271/3 "2016-10-31T23:52:02Z")

</div>

I’d checked that. It’s not links to urls with parentheses that I’m having with, but links to URLs containing parentheses when the displayed text is an image whose url contains a parenthesis. In html, it’d be

```
<a href="http://x.com/really(silly)filename.png"><img src="http://x.com/really(silly)filename.png"></a>

```

I am pretty sure that this won’t work in our Markdown (the code that generates that markdown works fine if the image URL doesn’t contain parentheses) and that what I need to do is for such links, just replace the whole thing with

```
http://x.com/really(silly)filename.png

```

I can’t imagine that a human would ever do it the other way, so I’ll just have to cowboy up and deal with images that contain parentheses some other way (or even just all display-an-image-with-a-link-to-the-image instances).

---

_[View the full topic](https://meta.discourse.org/t/display-of-images-in-links-break-if-they-contain-parenthesis/52271)._
