mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
FIX: Following a mention with a coded mention.
This commit is contained in:
parent
6fe0d29a01
commit
f2c4b3e37f
@ -58,6 +58,9 @@ Discourse.Dialect.on("register", function(event) {
|
|||||||
remaining = remaining.slice(nextMention);
|
remaining = remaining.slice(nextMention);
|
||||||
this.processInline(before).forEach(pushIt);
|
this.processInline(before).forEach(pushIt);
|
||||||
continue;
|
continue;
|
||||||
|
} else {
|
||||||
|
before = before + remaining;
|
||||||
|
remaining = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -148,6 +148,10 @@ test("Mentions", function() {
|
|||||||
"<p>Yes <code>@this</code> should be code <span class=\"mention\">@eviltrout</span></p>",
|
"<p>Yes <code>@this</code> should be code <span class=\"mention\">@eviltrout</span></p>",
|
||||||
"Does not mention in an inline code block");
|
"Does not mention in an inline code block");
|
||||||
|
|
||||||
|
cooked("@eviltrout and `@eviltrout`",
|
||||||
|
"<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.");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Oneboxing", function() {
|
test("Oneboxing", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user