markdown @+字母,会有跳转链接,去掉

This commit is contained in:
caishi 2021-09-16 11:10:11 +08:00
parent 917374ba11
commit 25186132f2
1 changed files with 2 additions and 2 deletions

View File

@ -3319,9 +3319,9 @@
text = text.replace(emailReg, function ($1, $2, $3, $4) {
return $1.replace(/@/g, "_#_@_#_");
});
// " + editormd.urls.atLinkBase + "" + $2 + "
text = text.replace(atLinkReg, function ($1, $2) {
return "<a href=\"" + editormd.urls.atLinkBase + "" + $2 + "\" title=\"&#64;" + $2 + "\" class=\"at-link\">" + $1 + "</a>";
return "<span title=\"&#64;" + $2 + "\" class=\"at-link\">" + $1 + "</span>";
}).replace(/_#_&#64;_#_/g, "@");
}