🎨 Display the database title on the block superscript https://github.com/siyuan-note/siyuan/issues/10545

This commit is contained in:
Daniel 2024-03-08 22:51:28 +08:00
parent 40006904eb
commit 09b23754db
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 70 additions and 3 deletions

View file

@ -747,8 +747,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
avName = "Untitled"
}
tpl := `<span data-av-id="${avID}" data-popover-url="/api/av/getMirrorDatabaseBlocks" class="popover__block">${avName}</span>`
tpl = strings.ReplaceAll(tpl, "${avID}", avID)
tpl := strings.ReplaceAll(attrAvNameTpl, "${avID}", avID)
tpl = strings.ReplaceAll(tpl, "${avName}", avName)
avNames.WriteString(tpl)
avNames.WriteString("&nbsp;")