Skip to content

attempting to link to a url that contains parenthesis acts oddly #241

@lschierer

Description

@lschierer

attempting to link to https://en.wikipedia.org/wiki/Samodiva_(folklore) with a link such as

"[Samodiva (folklore)](https://en.wikipedia.org/wiki/Samodiva_(folklore))"

produces a link to https://en.wikipedia.org/wiki/Samodiva_(folklore (note the missing closing paren).

"[Samodiva (folklore)](https://en.wikipedia.org/wiki/Samodiva_(folklore\))"

works.

I would understand if I had to escape both opening and closing paren, or if I had to escape neither. Having to escape only the closing one seems counter-intuitive.

I'm using discount 2.2.6-1 from ubuntu focal, with libtext-markdown-discount-perl 0.12-1, via ikiwiki 3.20200202.3-1, all installed from ubuntu's packages.

Metadata

Metadata

Assignees

Labels

Behavior follows specsIt looks wrong, but that's how it's supposed to work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions