From d4a51a962638d051791bb12e3844b0c5505f27bb Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sun, 31 Jul 2022 14:21:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E5=AF=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E4=B8=AD=E5=86=85=E5=AE=B9=E5=81=9A=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Common.js b/src/Common.js index 4d21346..76d496b 100644 --- a/src/Common.js +++ b/src/Common.js @@ -147,10 +147,7 @@ export class HighlightedMarkdown extends Component { { shouldProcessNode(node) { return ( - node.type === 'text' && - (!node.parent || - !node.parent.attribs || - node.parent.attribs['encoding'] !== 'application/x-tex') + node.type === 'text' && node.parent && node.parent.name === 'p' ); // pid, nickname, search }, processNode(node, children, index) {