This commit is contained in:
Daniel 2025-01-11 17:05:36 +08:00
parent 4102e371f5
commit ef0142a1bc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -513,7 +513,7 @@ func normalizeTree(tree *parse.Tree) (yfmRootID, yfmTitle, yfmUpdated string) {
}
id := n.IALAttr("id")
if "" == id {
if "" == id && n.IsBlock() {
n.SetIALAttr("id", n.ID)
}