mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
oops my bad
This commit is contained in:
parent
01e0226086
commit
2e2160f964
@ -143,7 +143,7 @@ Discourse.Markdown = {
|
|||||||
if (!text) return "";
|
if (!text) return "";
|
||||||
|
|
||||||
// don't do @username mentions inside <pre> or <code> blocks
|
// don't do @username mentions inside <pre> or <code> blocks
|
||||||
text = text.replace(/<(pre|code>([\s\S]*?@[\s\S]*?)<\/(pre|code)>)/gi, function(wholeMatch, m1, m2, m3) {
|
text = text.replace(/<(pre|code)>([\s\S]*?@[\s\S]*?)<\/(pre|code)>)/gi, function(wholeMatch, m1, m2, m3) {
|
||||||
return "<" + m1 + ">" + (m2.replace(/@/g, '@')) + "</" + m3 + ">";
|
return "<" + m1 + ">" + (m2.replace(/@/g, '@')) + "</" + m3 + ">";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user