FIX: Following a mention with a coded mention.

This commit is contained in:
Robin Ward 2013-08-22 16:13:02 -04:00
parent 6fe0d29a01
commit f2c4b3e37f
2 changed files with 7 additions and 0 deletions

View File

@ -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 {

View File

@ -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() {