BUGFIX: Allow links to images with absolute URLs as well as parens
This commit is contained in:
@@ -379,5 +379,11 @@ test("urlAllowed", function() {
|
||||
allowed("http://eviltrout.com/evil/trout", "allows full urls");
|
||||
allowed("https://eviltrout.com/evil/trout", "allows https urls");
|
||||
allowed("//eviltrout.com/evil/trout", "allows protocol relative urls");
|
||||
|
||||
});
|
||||
|
||||
test("images", function() {
|
||||
|
||||
cooked("[](http://folksy.com/)",
|
||||
"<p><a href=\"http://folksy.com/\"><img src=\"http://folksy.com/images/folksy-colour.png\" alt=\"folksy logo\"/></a></p>",
|
||||
"It allows images with links around them");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user