From b3fc1844e8537e1c922def161a441cf4e281fd4d Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Sat, 18 Mar 2017 11:43:35 +0100 Subject: [PATCH] don't show link preview when link is inside of a quote Signed-off-by: Lieuwe Rooijakkers --- src/components/views/messages/TextualBody.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index a625e63062..c493094cbe 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -131,7 +131,8 @@ module.exports = React.createClass({ links.push(node); } } - else if (node.tagName === "PRE" || node.tagName === "CODE") { + else if (node.tagName === "PRE" || node.tagName === "CODE" || + node.tagName === "BLOCKQUOTE") { continue; } else if (node.children && node.children.length) {