mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 16:03:47 +08:00
Make @mentions following a slash link to usercards
A slash preceding an @mention was causing the markup for the usercard link to not be generated. For example, the markdown Pinging @bob/@joe Would generate a usercard for @bob, but not @joe.
This commit is contained in:
@ -276,6 +276,10 @@ test("Mentions", function() {
|
||||
"<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.");
|
||||
|
||||
cooked("Hello @foo/@bar",
|
||||
"<p>Hello <span class=\"mention\">@foo</span>/<span class=\"mention\">@bar</span></p>",
|
||||
"handles mentions separated by a slash.");
|
||||
|
||||
cookedOptions("@eviltrout", alwaysTrue,
|
||||
"<p><a class=\"mention\" href=\"/users/eviltrout\">@eviltrout</a></p>",
|
||||
"it doesn't onebox mentions");
|
||||
|
Reference in New Issue
Block a user