Removed hashtag/mention links that appear within text for markdown links (#3199)

Этот коммит содержится в:
Harrison Healey
2016-06-02 18:48:43 -04:00
коммит произвёл enahum
родитель 3083d4094c
Коммит 0e677f35bb

Просмотреть файл

@@ -162,7 +162,8 @@ class MattermostMarkdownRenderer extends marked.Renderer {
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;
}