mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
⚡ 改进重命名资源文件性能 https://github.com/siyuan-note/siyuan/issues/7322
改进建立引用索引 https://github.com/siyuan-note/siyuan/issues/7320
This commit is contained in:
parent
6743b21193
commit
b6ea32462e
23 changed files with 155 additions and 132 deletions
|
|
@ -294,7 +294,7 @@ func GetHeadingDeleteTransaction(id string) (transaction *Transaction, err error
|
|||
nodes = append(nodes, treenode.HeadingChildren(node)...)
|
||||
|
||||
transaction = &Transaction{}
|
||||
luteEngine := NewLute()
|
||||
luteEngine := util.NewLute()
|
||||
for _, n := range nodes {
|
||||
op := &Operation{}
|
||||
op.ID = n.ID
|
||||
|
|
@ -347,7 +347,7 @@ func GetHeadingChildrenDOM(id string) (ret string) {
|
|||
nodes := append([]*ast.Node{}, heading)
|
||||
children := treenode.HeadingChildren(heading)
|
||||
nodes = append(nodes, children...)
|
||||
luteEngine := NewLute()
|
||||
luteEngine := util.NewLute()
|
||||
ret = renderBlockDOMByNodes(nodes, luteEngine)
|
||||
return
|
||||
}
|
||||
|
|
@ -383,7 +383,7 @@ func GetHeadingLevelTransaction(id string, level int) (transaction *Transaction,
|
|||
}
|
||||
|
||||
transaction = &Transaction{}
|
||||
luteEngine := NewLute()
|
||||
luteEngine := util.NewLute()
|
||||
for _, c := range childrenHeadings {
|
||||
op := &Operation{}
|
||||
op.ID = c.ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue