diff --git a/app/containers/message/Markdown.js b/app/containers/message/Markdown.js index 2431d0bec..403af4872 100644 --- a/app/containers/message/Markdown.js +++ b/app/containers/message/Markdown.js @@ -57,10 +57,7 @@ const Markdown = React.memo(({ if (m) { m = emojify(m, { output: 'unicode' }); } - const matched = m.match(/^\[([^\]]*)\]\(([^)]*)\)\1/); - if (matched && matched[0] !== msg) { - m = m.replace(/^\[([^\]]*)\]\(([^)]*)\)/, '').trim(); - } + m = m.replace(/^\[([^\]]*)\]\(([^)]*)\)\s/, '').trim(); if (numberOfLines > 0) { m = m.replace(/[\n]+/g, '\n').trim(); }