mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: Don't autolink within a markdown link.
This commit is contained in:
@ -261,6 +261,12 @@ test("Oneboxing", function() {
|
||||
|
||||
});
|
||||
|
||||
test("links with full urls", function() {
|
||||
cooked("[http://eviltrout.com][1] is a url\n\n[1]: http://eviltrout.com",
|
||||
"<p><a href=\"http://eviltrout.com\">http://eviltrout.com</a> is a url</p>",
|
||||
"it supports links that are full URLs");
|
||||
});
|
||||
|
||||
test("Code Blocks", function() {
|
||||
|
||||
cooked("```\na\nb\nc\n\nd\n```",
|
||||
|
Reference in New Issue
Block a user