1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Merge pull request #762 from lieuwex/hide-link-preview-quote

Don't show link preview when link is inside of a quote
This commit is contained in:
Luke Barnard
2017-04-12 15:31:43 +01:00
committed by GitHub

View File

@ -132,7 +132,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) {