🎨 Improve parsing of YAML Front Matter when importing Markdown https://github.com/siyuan-note/siyuan/issues/12962 https://github.com/siyuan-note/siyuan/issues/13038
This commit is contained in:
parent
dc70276dae
commit
dcc5cefa64
1 changed files with 2 additions and 0 deletions
|
@ -1181,6 +1181,8 @@ func reassignIDUpdated(tree *parse.Tree, rootID, updated string) {
|
|||
n.SetIALAttr("id", n.ID)
|
||||
if "" != updated {
|
||||
n.SetIALAttr("updated", updated)
|
||||
n.ID = updated + "-" + gulu.Rand.String(7)
|
||||
n.SetIALAttr("id", n.ID)
|
||||
} else {
|
||||
n.SetIALAttr("updated", util.TimeFromID(n.ID))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue