diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/utils/markdown.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index b128bd3e8..73af4ae91 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -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; } |