From 31667b09641c0fd79fd3fca84e9f6fcfe6c94b42 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 11 Aug 2025 01:18:13 +0800 Subject: [PATCH] :art: Improve av https://github.com/siyuan-note/siyuan/issues/15524 --- kernel/model/attribute_view.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 82953251e..6011f20b1 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -4270,9 +4270,9 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID if "" == content { // 使用动态锚文本 val.Block.Content = util.UnescapeHTML(blockText) + updateBlockValueStaticText(tx, node, tree, avID, "") } else { val.Block.Content = content - // 设置静态锚文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049 updateBlockValueStaticText(tx, node, tree, avID, content) } } @@ -4463,6 +4463,8 @@ func bindBlockAv0(tx *Transaction, avID string, node *ast.Node, tree *parse.Tree } func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tree, avID, text string) { + // 设置静态锚文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049 + if nil == node { return }