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);
|
||||
this.processInline(before).forEach(pushIt);
|
||||
continue;
|
||||
} else {
|
||||
before = before + remaining;
|
||||
remaining = "";
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
@ -148,6 +148,10 @@ test("Mentions", function() {
|
|||
"<p>Yes <code>@this</code> should be code <span class=\"mention\">@eviltrout</span></p>",
|
||||
"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() {
|
||||
|
|
Loading…
Reference in New Issue