vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

Links containing parentheses #99

Closed mkrogh closed 12 years ago

mkrogh commented 12 years ago

Just observed that links to urls with parentheses makes sundown (and markdown) freak out.

Exhibit A:

[A nice link...](http://en.wikipedia.org/wiki/Pretend_(song) "some song")

Becomes: A nice link...

The additional "some song") seems a bit wrong. The behavior has also been observed in the original markdown dingus.

It seems like the stackoverflow team had a similar experience

vmg commented 12 years ago

Hey Markus,

this is intended. Escape the parentheses in an URL so they don't act as delimiters.

[A nice link...](http://en.wikipedia.org/wiki/Pretend_\(song\) "some song")

A nice link...

Cheers!

mkrogh commented 12 years ago

Fair enough if it is "intended", however it is something that is very hard to convince users to do.

vmg commented 12 years ago

I don't write the standard, I just implement it as closely as possible. I'm afraid I cannot change these things. Sorry!