From 55f77f26b77c551e3a50232352fdb9b07fafd982 Mon Sep 17 00:00:00 2001 From: thuhole Date: Wed, 24 Jun 2020 10:37:11 +0800 Subject: [PATCH] temporarily fix black screen --- src/Common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common.js b/src/Common.js index fe2cb1ca..52bd0fa3 100644 --- a/src/Common.js +++ b/src/Common.js @@ -94,7 +94,7 @@ export class HighlightedMarkdown extends Component { }, { shouldProcessNode (node) { - return node.type === 'text' // pid, nickname, search + return node.type === 'text' && (!node.parent || !node.parent.attribs || node.parent.attribs['encoding'] != "application/x-tex") // pid, nickname, search }, processNode (node) { const originalText = node.data @@ -102,7 +102,7 @@ export class HighlightedMarkdown extends Component { ['url_pid', URL_PID_RE], ['url',URL_RE], ['pid',PID_RE], - // ['nickname',NICKNAME_RE], + ['nickname',NICKNAME_RE], ]) return (