mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 22:08:48 +01:00
🐛 文档导出为图片时图片地址不正确 Fix https://github.com/siyuan-note/siyuan/issues/6925
This commit is contained in:
parent
4ed549cdb1
commit
608bce58a6
3 changed files with 9 additions and 4 deletions
|
|
@ -339,7 +339,7 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
|
|||
return
|
||||
}
|
||||
|
||||
func ExportHTML(id, savePath string, pdf, keepFold, merge bool) (name, dom string) {
|
||||
func ExportHTML(id, savePath string, pdf, image, keepFold, merge bool) (name, dom string) {
|
||||
savePath = strings.TrimSpace(savePath)
|
||||
tree, _ := loadTreeByBlockID(id)
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ func ExportHTML(id, savePath string, pdf, keepFold, merge bool) (name, dom strin
|
|||
return
|
||||
}
|
||||
}
|
||||
} else { // 导出 PDF 需要将资源文件路径改为 HTTP 伺服
|
||||
} else if pdf && !image { // 导出 PDF 需要将资源文件路径改为 HTTP 伺服
|
||||
luteEngine.RenderOptions.LinkBase = "http://" + util.LocalHost + ":" + util.ServerPort + "/"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue