mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
test: add nofollow ref for non internal links only
This commit is contained in:
parent
93484b1424
commit
c9977f0c0b
|
@ -424,7 +424,10 @@ func TestInlineLink(t *testing.T) {
|
|||
func TestNofollowLink(t *testing.T) {
|
||||
var tests = []string{
|
||||
"[foo](/bar/)\n",
|
||||
"<p><a href=\"/bar/\" rel=\"nofollow\">foo</a></p>\n",
|
||||
"<p><a href=\"/bar/\">foo</a></p>\n",
|
||||
|
||||
"[foo](http://bar.com/foo/)\n",
|
||||
"<p><a href=\"http://bar.com/foo/\" rel=\"nofollow\">foo</a></p>\n",
|
||||
}
|
||||
doTestsInlineParam(t, tests, 0, HTML_SAFELINK|HTML_NOFOLLOW_LINKS)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user