copycat icon indicating copy to clipboard operation
copycat copied to clipboard

Percent encode parenthesis in URL when creating Markdown link

Open leesei opened this issue 4 years ago • 1 comments

URL: https://www.wikiwand.com/en/Ring_(mathematics) "Tab link -> Markdown": [Ring (mathematics) - Wikiwand](https://www.wikiwand.com/en/Ring_(mathematics)) which caused problem in some Markdown parser

I recommends outputting this: [Field (mathematics) - Wikiwand](https://www.wikiwand.com/en/Field_%28mathematics%29)

leesei avatar Jul 11 '19 04:07 leesei

Also encode space as %20

leesei avatar Jul 11 '19 06:07 leesei

This issue is more complicated than I thought. I found that brackets are explicitly listed as reserved characters in the URL encoding. A Markdown parser should have the ability to distinguish between URLs and Markdown syntax, and if it can't, then it needs to be fixed. This extension should not change the output for this particular case.

BlackGlory avatar Feb 21 '23 09:02 BlackGlory