mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 18:30:16 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15659
This commit is contained in:
parent
39e2b7adf6
commit
920291d52b
3 changed files with 11 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue