mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Database values no longer correspond to block attributes Fix https://github.com/siyuan-note/siyuan/issues/9293
This commit is contained in:
parent
ad53100fd1
commit
c1bc0c2b0e
3 changed files with 12 additions and 16 deletions
|
|
@ -171,6 +171,14 @@ func fixLegacyData(tip, node *ast.Node, idMap *map[string]bool, needFix, needMig
|
|||
node.Children = node.Children[:len(node.Children)-1]
|
||||
*needFix = true
|
||||
}
|
||||
|
||||
for _, kv := range node.KramdownIAL {
|
||||
if strings.Contains(kv[0], "custom-av-key-") {
|
||||
// 删除数据库属性键值对 https://github.com/siyuan-note/siyuan/issues/9293
|
||||
node.RemoveIALAttr(kv[0])
|
||||
*needFix = true
|
||||
}
|
||||
}
|
||||
}
|
||||
if "" != node.ID {
|
||||
if _, ok := (*idMap)[node.ID]; ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue