mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fixes @mentions inside of lists
This commit is contained in:
@@ -129,7 +129,7 @@ test("Mentions", function() {
|
||||
"handles mentions in simple quotes");
|
||||
|
||||
cooked("> foo bar baz @eviltrout ohmagerd\nlook at this",
|
||||
"<blockquote><p>foo bar baz <span class=\"mention\">@eviltrout</span></p><p> ohmagerd\nlook at this</p></blockquote>",
|
||||
"<blockquote><p>foo bar baz <span class=\"mention\">@eviltrout</span> ohmagerd\nlook at this</p></blockquote>",
|
||||
"does mentions properly with trailing text within a simple quote");
|
||||
|
||||
cooked("`code` is okay before @mention",
|
||||
@@ -152,6 +152,10 @@ test("Mentions", function() {
|
||||
"<p><span class=\"mention\">@eviltrout</span> and <code>@eviltrout</code></p>",
|
||||
"you can have a mention in an inline code block following a real mention.");
|
||||
|
||||
cooked("1. this is a list\n\n2. this is an @eviltrout mention\n",
|
||||
"<ol><li><p>this is a list</p></li><li><p>this is an <span class=\"mention\">@eviltrout</span> mention </p></li></ol>",
|
||||
"it mentions properly in a list.");
|
||||
|
||||
});
|
||||
|
||||
test("Oneboxing", function() {
|
||||
|
||||
Reference in New Issue
Block a user