I noticed that redcarpet cannot handle nested ( ) within the URL part of links.
[bash](http://example.com/bash_(1\)) will render <a href="http://example.com/bash_(1)">bash</a>:
Kramdown correctly parses nested ( ), without requiring backslash escaping.
After a bit of investigating, I've found that here in markdown.c, Redcarpet considers the first found parenthesis as link's end. I will try to fix this soon! Thanks for reporting.
Ensure nested parenthesis are handled into links
Make sure that parenthesis inside the link's url are correctly parsed
Redcarpet considered the first ")" occurrence as the link's end so we
first count the number of open "(" and decrement this number each
time we found a ")".
Close issue #237
I'm closing this since #258 has been merge ; I don't know why it hasn't been automagically closed when the PR has been merge...Sorry for the delay by the way.