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

Signed-off-by: Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com>
This commit is contained in:
Lieuwe Rooijakkers 2017-03-18 11:43:35 +01:00
parent 33f5c286bb
commit b3fc1844e8

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