Skip to content

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

:art: The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957

Daniel1f70336b41aa
diff --git a/kernel/model/outline.go b/kernel/model/outline.go
index 464bc0ebb1..027fad24bd 100644
--- a/kernel/model/outline.go
+++ b/kernel/model/outline.go
@@ -72,7 +72,9 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
}
if targetNode == heading.Previous {
- return
+ if previousHeading.HeadingLevel >= heading.HeadingLevel {
+ return
+ }
}
diffLevel := heading.HeadingLevel - previousHeading.HeadingLevel