From 4c47fdbdb195a3fab5928d93e61d062a3b9e3ad3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 27 Sep 2023 15:58:30 +0800 Subject: [PATCH] :art: Remove `scroll` attribute when converting the document to a heading https://github.com/siyuan-note/siyuan/issues/9297 --- kernel/model/heading.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/heading.go b/kernel/model/heading.go index 47ae237e0..dc41413bd 100644 --- a/kernel/model/heading.go +++ b/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, ",")