🎨 Improve database reference anchor text https://github.com/siyuan-note/siyuan/issues/11035

This commit is contained in:
Daniel 2024-04-15 14:57:33 +08:00
parent a049eeec3e
commit cab6e015d3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -197,6 +197,12 @@ func getNodeRefText0(node *ast.Node) string {
return "Video..."
case ast.NodeAudio:
return "Audio..."
case ast.NodeAttributeView:
ret, _ := av.GetAttributeViewName(node.AttributeViewID)
if "" == ret {
ret = "Database " + Conf.language(105)
}
return ret
}
if ast.NodeDocument != node.Type && node.IsContainerBlock() {