🎨 Improve export preview mode https://github.com/siyuan-note/siyuan/issues/11981
This commit is contained in:
parent
816ebbc8cd
commit
14512aab7c
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ func Outline(rootID string, preview bool) (ret []*Path, err error) {
|
|||
title.InsertAfter(&ast.Node{Type: ast.NodeKramdownBlockIAL, Tokens: parse.IAL2Tokens(title.KramdownIAL)})
|
||||
|
||||
content := html.UnescapeString(root.Content)
|
||||
title.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(content)})
|
||||
title.AppendChild(&ast.Node{ID: root.ID, Type: ast.NodeText, Tokens: []byte(content)})
|
||||
tree.Root.PrependChild(title)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue