🎨 Add data-doc-type and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497

This commit is contained in:
Daniel 2023-10-25 09:30:03 +08:00
parent 281e0ba091
commit dbd829a4a0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 14 additions and 3 deletions

View file

@ -585,7 +585,7 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
return
}
func ExportHTML(id, savePath string, pdf, image, keepFold, merge bool) (name, dom string) {
func ExportHTML(id, savePath string, pdf, image, keepFold, merge bool) (name, dom string, node *ast.Node) {
savePath = strings.TrimSpace(savePath)
bt := treenode.GetBlockTree(id)
@ -594,6 +594,7 @@ func ExportHTML(id, savePath string, pdf, image, keepFold, merge bool) (name, do
}
tree := prepareExportTree(bt)
node = treenode.GetNodeInTree(tree, id)
if merge {
var mergeErr error