🎨 Blocks in the bookmark panel display their name instead of content Fix https://github.com/siyuan-note/siyuan/issues/8514

This commit is contained in:
Daniel 2023-06-09 22:49:59 +08:00
parent 8445fa73f2
commit 01f93d1687
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -166,6 +166,12 @@ func BuildBookmark() (ret *Bookmarks) {
blocks := fromSQLBlocks(&sqlBlocks, "", 0)
for _, block := range blocks {
label := BookmarkLabel(block.IAL["bookmark"])
if "" != block.Name {
// Blocks in the bookmark panel display their name instead of content https://github.com/siyuan-note/siyuan/issues/8514
block.Content = block.Name
}
if bs, ok := labelBlocks[label]; ok {
bs = append(bs, block)
labelBlocks[label] = bs