mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 20:49:58 +08:00
🐛 引用非文档命名块时动态锚文本没有使用命名 Fix https://github.com/siyuan-note/siyuan/issues/6397
This commit is contained in:
parent
262134aa03
commit
9dd6ac48de
@ -1170,9 +1170,6 @@ func updateRefText(refNode *ast.Node, changedDefNodes map[string]*ast.Node) (cha
|
||||
if nil == defNode {
|
||||
return ast.WalkSkipChildren
|
||||
}
|
||||
if ast.NodeDocument != defNode.Type && defNode.IsContainerBlock() {
|
||||
defNode = treenode.FirstLeafBlock(defNode)
|
||||
}
|
||||
|
||||
refText := getNodeRefText(defNode)
|
||||
treenode.SetDynamicBlockRefText(n, refText)
|
||||
|
Loading…
Reference in New Issue
Block a user