Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17155

Vanessac9474ba5f25e
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index 5fd141fd6e..86d411d707 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -566,7 +566,9 @@ export class Outline extends Model {
if (!nodeElement) {
return;
}
- if (nodeElement.getAttribute("data-type") === "NodeHeading") {
+ if (nodeElement.getAttribute("data-type") === "NodeHeading" &&
+ !nodeElement.parentElement.classList.contains("bq") &&
+ !nodeElement.parentElement.classList.contains("callout-content")) {
this.setCurrentById(nodeElement.getAttribute("data-node-id"));
} else {
let previousElement = getPreviousBlock(nodeElement);