FIX: Markdown parser: empty links and bbcode parsed as link refs

This commit is contained in:
Jens Maier
2014-08-31 02:55:43 +02:00
parent 6d1be665a1
commit 9be5c98c8c
2 changed files with 7 additions and 1 deletions

View File

@@ -119,6 +119,10 @@ test("Links", function() {
cooked("[3]: http://eviltrout.com", "", "It doesn't autolink markdown link references");
cooked("[]: http://eviltrout.com", "<p>[]: <a href=\"http://eviltrout.com\">http://eviltrout.com</a></p>", "It doesn't accept empty link references");
cooked("[b]label[/b]: description", "<p><span class=\"bbcode-b\">label</span>: description</p>", "It doesn't accept BBCode as link references");
cooked("http://discourse.org and http://discourse.org/another_url and http://www.imdb.com/name/nm2225369",
"<p><a href=\"http://discourse.org\">http://discourse.org</a> and " +
"<a href=\"http://discourse.org/another_url\">http://discourse.org/another_url</a> and " +