don't show link preview when link is inside of a quote

Signed-off-by: Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com>
pull/21833/head
Lieuwe Rooijakkers 2017-03-18 11:43:35 +01:00
parent 33f5c286bb
commit b3fc1844e8
1 changed files with 2 additions and 1 deletions

View File

@ -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) {