fix: 不对代码块中内容做解析
This commit is contained in:
@@ -147,10 +147,7 @@ export class HighlightedMarkdown extends Component {
|
|||||||
{
|
{
|
||||||
shouldProcessNode(node) {
|
shouldProcessNode(node) {
|
||||||
return (
|
return (
|
||||||
node.type === 'text' &&
|
node.type === 'text' && node.parent && node.parent.name === 'p'
|
||||||
(!node.parent ||
|
|
||||||
!node.parent.attribs ||
|
|
||||||
node.parent.attribs['encoding'] !== 'application/x-tex')
|
|
||||||
); // pid, nickname, search
|
); // pid, nickname, search
|
||||||
},
|
},
|
||||||
processNode(node, children, index) {
|
processNode(node, children, index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user