mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve formatting https://github.com/siyuan-note/siyuan/issues/13786
This commit is contained in:
parent
4102e371f5
commit
ef0142a1bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue