Removed hashtag/mention links that appear within text for markdown links (#3199)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
3083d4094c
Коммит
0e677f35bb
@@ -162,7 +162,8 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
output += ' title="' + title + '"';
|
output += ' title="' + title + '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
output += '>' + text + '</a>';
|
// remove any links added to the text by hashtag or mention parsing since they'll break this link
|
||||||
|
output += '>' + text.replace(/<\/?a[^>]*>/, '') + '</a>';
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user