Closed dominickpastore closed 3 years ago
Will take a look at it. Thanks for reporting it.
parentheses fall outside www autolinks only when they do not fall inside the link.
I just realized how silly that sentence sounds, but it sounds like you understood what I meant ;-)
As long as people provide the blessed trinity Input, Expected Output and Actual Output in their reports, it's hard to misunderstand it :-)
It seems there is a mistake in a test case that is letting a bug through.
According to the GFM spec, unmatched closing parentheses fall outside www autolinks only when they do not fall inside the link. The same text is in
test/permissive-www-autolinks.txt
, but the corresponding test case doesn't actually have a mismatched parenthesis to test it. And, it turns out MD4C gets it wrong when the mismatched parenthesis is added:Input:
Expected output:
Actual output:
(Note how
)+ok
is outside the link.)