fix: 不对代码块中内容做解析

This commit is contained in:
2022-07-31 14:21:10 +08:00
parent b38abba4bd
commit d4a51a9626

View File

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