🐛 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:
Daniel 2024-01-15 22:15:34 +08:00
parent 7d57bd07e7
commit e0fb872cbf
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -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