mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-09 21:54:18 +08:00
🐛 Focus block does not add the title when exporting as an image https://github.com/siyuan-note/siyuan/issues/10177
This commit is contained in:
parent
7d57bd07e7
commit
e0fb872cbf
@ -865,11 +865,13 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
|
||||
}
|
||||
}
|
||||
|
||||
oldRoot := ret.Root
|
||||
ret = parse.Parse("", []byte(""), luteEngine.ParseOptions)
|
||||
first := ret.Root.FirstChild
|
||||
for _, node := range nodes {
|
||||
first.InsertBefore(node)
|
||||
}
|
||||
ret.Root.KramdownIAL = oldRoot.KramdownIAL
|
||||
}
|
||||
ret.Path = bt.Path
|
||||
ret.HPath = bt.HPath
|
||||
|
Loading…
Reference in New Issue
Block a user