Skip to content

Commit

Permalink
fix: #1131 Unchecked node bug when view code
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Mar 16, 2023
1 parent 6fd06fb commit c276c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5129,7 +5129,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
if (node.nodeType === 1) {
if (util._disallowedTags(node)) return '';

const ch = util.getListChildNodes(node, function(current) { return util.isSpanWithoutAttr(current); }) || [];
const ch = util.getListChildNodes(node, function(current) { return util.isSpanWithoutAttr(current) && !util.getParentElement(current, util.isNotCheckingNode); }) || [];
for (let i = ch.length - 1; i >= 0; i--) {
ch[i].outerHTML = ch[i].innerHTML;
}
Expand Down

0 comments on commit c276c80

Please sign in to comment.