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