mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 05:48:49 +01:00
🎨 Add data-doc-type and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497
This commit is contained in:
parent
281e0ba091
commit
dbd829a4a0
2 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue