🎨 Database values no longer correspond to block attributes Fix https://github.com/siyuan-note/siyuan/issues/9293

This commit is contained in:
Daniel 2023-09-27 16:39:39 +08:00
parent 688f3a13bf
commit 4efdae7745
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -174,6 +174,7 @@ func fixLegacyData(tip, node *ast.Node, idMap *map[string]bool, needFix, needMig
for _, kv := range node.KramdownIAL {
if strings.Contains(kv[0], "custom-av-key-") {
// TODO: 数据库正式上线以后移除这里的修复
// 删除数据库属性键值对 https://github.com/siyuan-note/siyuan/issues/9293
node.RemoveIALAttr(kv[0])
*needFix = true