From 53a22961dcad5eda5952f939c3079cc18f9b0142 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 15 Jan 2026 19:06:18 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12139 --- app/src/protyle/gutter/index.ts | 10 ++++------ app/src/protyle/wysiwyg/remove.ts | 13 +++++++++---- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index cef99bc92..d2913ae29 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -2545,11 +2545,11 @@ export class Gutter { } listItem = topElement.querySelector(".li") || topElement.querySelector(".list"); // 嵌入块中有列表时块标显示位置错误 https://github.com/siyuan-note/siyuan/issues/6254 - if (isInEmbedBlock(listItem) || isInAVBlock(listItem)) { + if (isInEmbedBlock(listItem) || isInAVBlock(listItem) || hasClosestByClassName(nodeElement, "callout")) { listItem = undefined; } - // 标题必须显示 - if (topElement !== nodeElement && type !== "NodeHeading" && !topElement.classList.contains("callout")) { + // 标题(除列表下的)、提示下的块必须显示 + if (topElement !== nodeElement && type !== "NodeHeading" && !hasClosestByClassName(nodeElement, "callout")) { nodeElement = topElement; parentElement = hasClosestBlock(nodeElement.parentElement); type = nodeElement.getAttribute("data-type"); @@ -2647,9 +2647,7 @@ data-type="fold" style="cursor:inherit;">