Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363

Danielf870ff44d22d
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go
index eb387abb10..7f3163b4aa 100644
--- a/kernel/model/blockinfo.go
+++ b/kernel/model/blockinfo.go
@@ -115,13 +115,13 @@ func GetBlockRefText(id string) string {
return ErrBlockNotFound.Error()
}
- // Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363
ast.Walk(node, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering {
return ast.WalkContinue
}
if n.IsTextMarkType("inline-memo") {
+ // Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363
n.TextMarkInlineMemoContent = ""
return ast.WalkContinue
}