If an URL contains only an opening bracket ((), but no closed bracket ()) and you try to link to it inline ([like this](http://www.example.org/opening_bracket:_()), the markdown doesn't work. The closing bracket is seen as part of the URL and therefore the whole syntax as unfinished.

Linking like the button does it works as expected.


This is how Markdown works.

If you ever have a URL with an unpaired parenthesis (brackets and braces aren't the case), encode it or put it at the end of the post

[Solution 1](http://example.com/Unpaired_%28)
[Solution 2][2]

  [2]: http://example.com/Unpaired_(
  • But it could work better. Or is there a case where detecting that would create a problem? – Fabian Röling Jan 12 '18 at 16:13
  • @Fabian Then how to handle well-paired parentheses? – iBug is disappointed in SE Jan 12 '18 at 16:14
  • Just like now. The last closing bracket ends the URL, no matter what is in between. – Fabian Röling Jan 12 '18 at 16:15
  • @Fabian The problem is, we can't handle both cases as of now. The parentheses pairing algorithm can't detect when an opening parenthesis needs its pair. – iBug is disappointed in SE Jan 12 '18 at 16:18
  • So you mean that it first detects parenthesis pairs and then the other markdown (links and so on) based on that? Then a bigger change is requires, but it's still a valid bug. It can then be decided to not get fixed, but it is a bug. – Fabian Röling Jan 12 '18 at 16:19
  • I'll mark your answer as accepted now, because animuson didn't write an answer. – Fabian Röling Jan 12 '18 at 21:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .