This commit is contained in:
Daniel 2025-08-23 18:31:28 +08:00
parent 39e2b7adf6
commit 920291d52b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 11 additions and 6 deletions

View file

@ -288,7 +288,7 @@ func getNodeRefText(node *ast.Node) string {
return getNodeRefText0(node, Conf.Editor.BlockRefDynamicAnchorTextMaxLen, true)
}
func getNodeAvBlockText(node *ast.Node) (icon, content string) {
func getNodeAvBlockText(node *ast.Node, avID string) (icon, content string) {
if nil == node {
return
}
@ -303,6 +303,11 @@ func getNodeAvBlockText(node *ast.Node) (icon, content string) {
}
content = strings.TrimSpace(content)
if "" != avID {
if staticText := node.IALAttr(av.NodeAttrViewStaticText + "-" + avID); "" != staticText {
content = staticText
}
}
if "" == content {
content = Conf.language(105)
}