An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 引用命名块时动态锚文本没有使用命名 Fix https://github.com/siyuan-note/siyuan/issues/6032
Liang Ding801e5d12e192
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 0979a0bd67..fad01e0da8 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -24,7 +24,6 @@ import ("strings""sync""time"- "unicode/utf8""github.com/88250/gulu""github.com/88250/lute/ast"@@ -1131,11 +1130,9 @@ func updateRefText(refNode *ast.Node, changedDefNodes map[string]*ast.Node) (chaif ast.NodeDocument != defNode.Type && defNode.IsContainerBlock() {defNode = treenode.FirstLeafBlock(defNode)}- defContent := renderBlockText(defNode)- if Conf.Editor.BlockRefDynamicAnchorTextMaxLen < utf8.RuneCountInString(defContent) {- defContent = gulu.Str.SubStr(defContent, Conf.Editor.BlockRefDynamicAnchorTextMaxLen) + "..."- }- treenode.SetDynamicBlockRefText(n, defContent)++ refText := getNodeRefText(defNode)+ treenode.SetDynamicBlockRefText(n, refText)changed = truereturn ast.WalkContinue})