mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 Remove scroll attribute when converting the document to a heading https://github.com/siyuan-note/siyuan/issues/9297
This commit is contained in:
parent
c1bc0c2b0e
commit
4c47fdbdb1
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
||||||
headingLevel = 6
|
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")
|
srcTree.Root.RemoveIALAttr("type")
|
||||||
tagIAL := srcTree.Root.IALAttr("tags")
|
tagIAL := srcTree.Root.IALAttr("tags")
|
||||||
tags := strings.Split(tagIAL, ",")
|
tags := strings.Split(tagIAL, ",")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue