temporarily fix black screen

This commit is contained in:
thuhole
2020-06-24 10:37:11 +08:00
parent 936857e645
commit 55f77f26b7

View File

@@ -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 (