Vanessa 2025-07-23 13:08:38 +08:00
parent c88f99646c
commit 508eb93183
33 changed files with 111 additions and 108 deletions

View file

@ -563,7 +563,7 @@ export class Gutter {
hasEmbedBlock = true;
}
if (item.nextElementSibling && selectsElement[index + 1] &&
(item.nextElementSibling === selectsElement[index + 1])) {
item.nextElementSibling === selectsElement[index + 1]) {
isContinue = true;
} else if (index !== selectsElement.length - 1) {
isContinue = false;
@ -2329,7 +2329,7 @@ export class Gutter {
listItem = undefined;
}
// 标题必须显示
if ((topElement !== nodeElement) && type !== "NodeHeading") {
if (topElement !== nodeElement && type !== "NodeHeading") {
nodeElement = topElement;
parentElement = hasClosestBlock(nodeElement.parentElement);
type = nodeElement.getAttribute("data-type");