mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
⚡ 改进多个功能点的性能 Fix https://github.com/siyuan-note/siyuan/issues/7177
This commit is contained in:
parent
9589dbbc7b
commit
04f47749f7
19 changed files with 295 additions and 34 deletions
|
|
@ -114,3 +114,11 @@ func RootChildIDs(rootID string) (ret []string) {
|
|||
})
|
||||
return
|
||||
}
|
||||
|
||||
func NewParagraph() (ret *ast.Node) {
|
||||
newID := ast.NewNodeID()
|
||||
ret = &ast.Node{ID: newID, Type: ast.NodeParagraph}
|
||||
ret.SetIALAttr("id", newID)
|
||||
ret.SetIALAttr("updated", newID[:14])
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue