You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whitespace(s) or Tab before parentheses (()) opening is ignored if it comes after brackets ([]).
Long Description
In the text blocks that "like" a link, are treated as a link, even if they are a links of a different kind.
Reproducible Example
package main
import (
"fmt""gopkg.in/russross/blackfriday.v2"
)
varinput=`* [example_org link]* [example_net link](https://example.net)* [example_com link] (hey, there is space before parenthese, ignoge me please)[example_org link]: https://example.org[example_com link]: https://example.com`funcmain() {
output:=string(blackfriday.Run([]byte(input)))
fmt.Println(output)
}
Expected Output
<ul><li><ahref="https://example.org">example_org link</a></li><li><ahref="https://example.net">example_net link</a></li><li><ahref="https://example.com">example_com link</a> (hey, there is space before parenthese, ignoge me please)</li></ul>
Actual Output
<ul><li><ahref="https://example.org">example_org link</a></li><li><ahref="https://example.net">example_net link</a></li><li><ahref="hey, there is space before parenthese, ignoge me please">example_com link</a></li></ul>
The text was updated successfully, but these errors were encountered:
Tested v1 and v2. Both affected.
Short Description
Whitespace(s) or Tab before parentheses (
()
) opening is ignored if it comes after brackets ([]
).Long Description
In the text blocks that "like" a link, are treated as a link, even if they are a links of a different kind.
Reproducible Example
Expected Output
Actual Output
The text was updated successfully, but these errors were encountered: