# URLs in parenthesis do not turn into links

**URL:** https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479
**Category:** Feature
**Created:** [26.Июнь.2015 05:46:41 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479 "2015-06-26T05:46:41Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![swisspol](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swisspol/32/115586_2.png) [@swisspol](https://meta.discourse.org/u/swisspol)
#### Post date: [26.Июнь.2015 05:46:41 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/1 "2015-06-26T05:46:41Z")

</div>

v1.4.0.beta3 +76

If you enter URLs in parenthesis, they don’t turn into links:

```
like this (http://www.apple.com)

```

like this ([http://www.apple.com](http://www.apple.com))

I wonder if that’s a regression as I thought this was working maybe 1 or 2 months ago.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Июнь.2015 05:49:48 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/2 "2015-06-26T05:49:48Z")

</div>

No regression, that’s incorrect syntax  
Try like shown here

> **[Links - Daring Fireball: Markdown Syntax Documentation](https://daringfireball.net/projects/markdown/syntax#link)**
>
> Note: This document is itself written using Markdown; you can see the source for it by adding ‘.text’ to the URL.

---

<div class="post-metadata">

### Author: ![swisspol](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swisspol/32/115586_2.png) [@swisspol](https://meta.discourse.org/u/swisspol)
#### Post date: [26.Июнь.2015 05:55:23 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/3 "2015-06-26T05:55:23Z")

</div>

Ah, I didn’t think it would be interpreted as the parenthesis of the markdown link syntax, in which case yes, the brackets would be missing.

That’s too bad as surely I’m not going to be the only to want / attempt to naively put a URL in parenthesis (for reference, I am aware of the markdown link syntax which I use, but sometimes I appreciate being able to just paste a URL and having it works as-is).

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Июнь.2015 06:04:05 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/5 "2015-06-26T06:04:05Z")

</div>

> [@swisspol](#):
>
> but sometimes I appreciate being able to just paste a URL and having it works as-is).

A plain URL will become “linkified” but if you want it in parentheses there needs to be spaces  
`( http://www.google.com )`

( [http://www.google.com](http://www.google.com) )

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [26.Июнь.2015 06:06:55 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/6 "2015-06-26T06:06:55Z")

</div>

Hmm I don’t think it is incorrect syntax. See below for the example on Github.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/f/3f0847ca84e9f2a1faa995af750314fd4d406656.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Июнь.2015 06:11:54 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/7 "2015-06-26T06:11:54Z")

</div>

Maybe so, but there are different “flavors” of MarkDown. (eg. [CommonMark](http://commonmark.org/) 😉)  
Hint: Discourse does _not_ use the same as Github uses

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [26.Июнь.2015 06:16:55 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/8 "2015-06-26T06:16:55Z")

</div>

Thanks for clarifying 😄 I wonder if the above is intentional though since I don’t see any advantages of not turning URLs into links if you wrap them in `()`.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Июнь.2015 06:19:50 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/9 "2015-06-26T06:19:50Z")

</div>

> [@tgxworld](#):
>
> I don’t see any advantages of not turning URLs into links if you wrap them in ()

Neither do I, just the way it is I guess. Same thing when they’re in quotation marks  
`"http://www.youtube.com"`

“[http://www.youtube.com](http://www.youtube.com)”

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [26.Июнь.2015 06:21:07 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/10 "2015-06-26T06:21:07Z")

</div>

You can always provide extra hints, e.g.

([http://example.com](http://example.com))  
([http://example.com](http://example.com))

```
(http://example.com)
(<http://example.com>)

```

Turning “raw” links into actual links is _not_ part of Markdown proper. In Markdown, typing a raw link does nothing.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26.Июнь.2015 06:33:18 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/11 "2015-06-26T06:33:18Z")

</div>

Also, our autolinker is one of the more annoying regexes we ship, and it has plenty holes [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/dialects/autolink\_dialect.js](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/dialects/autolink_dialect.js)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [26.Июнь.2015 06:39:01 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/12 "2015-06-26T06:39:01Z")

</div>

> [@codinghorror](#):
>
> Turning “raw” links into actual links is not part of Markdown proper. In Markdown, typing a raw link does nothing.

Hmm is it a feature that we would want to ship with autolink since we don’t classify it as a bug?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [26.Июнь.2015 06:42:50 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/13 "2015-06-26T06:42:50Z")

</div>

> [@sam](#):
>
> one of the more annoying regexes we ship

I’ll say. Anytime I see that many “nots” I can’t help but cringe a little

```
[^`!()\[\]{};:'".,<>?«»“”‘’\s]

```

and that’s only a small bit of it!

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [20.Октябрь.2025 19:08:53 UTC](https://meta.discourse.org/t/urls-in-parenthesis-do-not-turn-into-links/30479/14 "2025-10-20T19:08:53Z")

</div>


