浏览代码

:art: Remove `scroll` attribute when converting the document to a heading https://github.com/siyuan-note/siyuan/issues/9297

Daniel 1 年之前
父节点
当前提交
4c47fdbdb1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/model/heading.go

+ 1 - 0
kernel/model/heading.go

@@ -160,6 +160,7 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
 		headingLevel = 6
 	}
 
+	srcTree.Root.RemoveIALAttr("scroll") // Remove `scroll` attribute when converting the document to a heading https://github.com/siyuan-note/siyuan/issues/9297
 	srcTree.Root.RemoveIALAttr("type")
 	tagIAL := srcTree.Root.IALAttr("tags")
 	tags := strings.Split(tagIAL, ",")