Browse Source

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

pull/16/head
hole-thu 3 years ago
parent
commit
d4a51a9626
  1. 5
      src/Common.js

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

Loading…
Cancel
Save