Image links containing parentheses like ![foo with a title](/bar/ "title with ()") aren't parsed correctly. FYI, I've added the following test case in TestInlineLink in inline_test.go to see how it fails:
"![foo with a title](/bar/ \"title with ()\" )\n",
"<p><img src=\"/bar/\" alt=\"foo with a title\" title=\"title with ()\" /></p>\n",
The result of go test was
--- FAIL: TestInlineLink (0.41s)
helpers_test.go:81:
Input ["![foo with a title](/bar/ \"title with ()\" )\n"]
Expected["<p><img src=\"/bar/\" alt=\"foo with a title\" title=\"title with ()\" /></p>\n"]
Actual ["<p><img src=\"/bar/ "title with (\" alt=\"foo with a title\" />" )</p>\n"]
helpers_test.go:81:
Input ["![foo with a title](/bar/ \"title with ()\" )\n"]
Expected["<p><img src=\"http://localhost/bar/\" alt=\"foo with a title\" title=\"title with ()\" /></p>\n"]
Actual ["<p><img src=\"http://localhost/bar/ "title with (\" alt=\"foo with a title\" />" )</p>\n"]
helpers_test.go:81:
Input ["![foo with a title](/bar/ \"title with ()\" )\n"]
Expected["<p><img src=\"http://localhost/bar/\" alt=\"foo with a title\" title=\"title with ()\" /></p>\n"]
Actual ["<p><img src=\"http://localhost/bar/ "title with (\" alt=\"foo with a title\" />" )</p>\n"]
FAIL
exit status 1
FAIL github.com/russross/blackfriday/v2 8.699s
Image links containing parentheses like
![foo with a title](/bar/ "title with ()")
aren't parsed correctly. FYI, I've added the following test case inTestInlineLink
ininline_test.go
to see how it fails:The result of
go test
wasGitHub parses this as expected:![title with () foo with a title](/bar/)