SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

Markdown : Not possible to link a URL containing ")"

Open NEOhidra opened this issue 15 years ago • 5 comments

Take for example Diasporas wiki page at http://en.wikipedia.org/wiki/Diaspora_(software). If a link is made using markdown syntax: [Diaspora](http://en.wikipedia.org/wiki/Diaspora_(software)) the result will be: Diaspora

Is there any works arround? If not would it be possible to fix this on Diaspora?

NEOhidra avatar Nov 03 '11 23:11 NEOhidra

Maybe we could keep going forward until the last closing paren in the token?

On Thu, Nov 3, 2011 at 7:17 PM, NEOhidra < [email protected]>wrote:

Take for example Diasporas wiki page at http://en.wikipedia.org/wiki/Diaspora_(software). If a link is made using markdown syntax: [Diaspora]( http://en.wikipedia.org/wiki/Diaspora_(software)) the result will be: Diaspora

Any chance to fix this on Diaspora?


Reply to this email directly or view it on GitHub: https://github.com/diaspora/diaspora/issues/2312

rsofaer avatar Nov 03 '11 23:11 rsofaer

We might have to get a fix upstream in RedCarpet to do it.

On Thu, Nov 3, 2011 at 7:21 PM, Raphael Sofaer [email protected] wrote:

Maybe we could keep going forward until the last closing paren in the token?

On Thu, Nov 3, 2011 at 7:17 PM, NEOhidra < [email protected]>wrote:

Take for example Diasporas wiki page at http://en.wikipedia.org/wiki/Diaspora_(software)http://en.wikipedia.org/wiki/Diaspora_(software). If a link is made using markdown syntax: [Diaspora]( http://en.wikipedia.org/wiki/Diaspora_(software))http://en.wikipedia.org/wiki/Diaspora_(software))the result will be: Diaspora

Any chance to fix this on Diaspora?


Reply to this email directly or view it on GitHub: https://github.com/diaspora/diaspora/issues/2312

rsofaer avatar Nov 03 '11 23:11 rsofaer

just recently started browsing here...

[Diaspora](http://en.wikipedia.org/wiki/Diaspora_(software\))

You need to escape the bracket with a backslash \

benced avatar Nov 05 '11 23:11 benced

I think the best approach to this is for someone to add a test case to RedCarpet: https://github.com/tanoku/redcarpet

That's the markdown gem we use. If we can get a test and fix in there, they will maintain it.

On Sat, Nov 5, 2011 at 7:50 PM, benced < [email protected]>wrote:

just recently started browsing here...

[Diaspora](http://en.wikipedia.org/wiki/Diaspora_(software))

You need to escape the bracket with a backslash \


Reply to this email directly or view it on GitHub: https://github.com/diaspora/diaspora/issues/2312#issuecomment-2643101

rsofaer avatar Nov 05 '11 23:11 rsofaer

Update: we've converted to client-side markdown, so we aren't using redcarpet anymore. This now works.

sarahmei avatar Jan 09 '12 20:01 sarahmei