mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Improve text
* 语言 动词 引用块 → 名词 块引用 * app/src/protyle/wysiwyg/transaction.ts * app/src/protyle/hint/extend.ts * Update API_zh_CN.md * Update 20200813004551-gm0pbn1.sy * Update README_zh_CN.md * Update transaction.go * Update 20200813131152-0wk5akh.sy * Update 20210127202655-2334vvv.sy * Update 20200813004551-gm0pbn1.sy * Update 20200813004551-gm0pbn1.sy * Update 20211226122549-jktxego.sy * Update 20211226122943-st7fpcj.sy * Update 20211226120349-rbkmozu.sy
This commit is contained in:
parent
7f35f457b9
commit
391c9d41e8
13 changed files with 27 additions and 27 deletions
|
|
@ -1378,7 +1378,7 @@ func (tx *Transaction) writeTree(tree *parse.Tree) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// refreshDynamicRefText 用于刷新引用块的动态锚文本。
|
||||
// refreshDynamicRefText 用于刷新块引用的动态锚文本。
|
||||
// 该实现依赖了数据库缓存,导致外部调用时可能需要阻塞等待数据库写入后才能获取到 refs
|
||||
func refreshDynamicRefText(updatedDefNode *ast.Node, updatedTree *parse.Tree) {
|
||||
changedDefs := map[string]*ast.Node{updatedDefNode.ID: updatedDefNode}
|
||||
|
|
@ -1386,7 +1386,7 @@ func refreshDynamicRefText(updatedDefNode *ast.Node, updatedTree *parse.Tree) {
|
|||
refreshDynamicRefTexts(changedDefs, changedTrees)
|
||||
}
|
||||
|
||||
// refreshDynamicRefTexts 用于批量刷新引用块的动态锚文本。
|
||||
// refreshDynamicRefTexts 用于批量刷新块引用的动态锚文本。
|
||||
// 该实现依赖了数据库缓存,导致外部调用时可能需要阻塞等待数据库写入后才能获取到 refs
|
||||
func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees map[string]*parse.Tree) {
|
||||
// 1. 更新引用的动态锚文本
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue