mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +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
|
|
@ -240,7 +240,11 @@ func exportPreviewHTML(c *gin.Context) {
|
|||
if nil != arg["merge"] {
|
||||
merge = arg["merge"].(bool)
|
||||
}
|
||||
name, content := model.ExportHTML(id, "", true, keepFold, merge)
|
||||
image := false
|
||||
if nil != arg["image"] {
|
||||
image = arg["image"].(bool)
|
||||
}
|
||||
name, content := model.ExportHTML(id, "", true, image, keepFold, merge)
|
||||
// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894
|
||||
content = strings.ReplaceAll(content, "http://"+util.LocalHost+":"+util.ServerPort+"/#", "#")
|
||||
|
||||
|
|
@ -271,7 +275,7 @@ func exportHTML(c *gin.Context) {
|
|||
if nil != arg["merge"] {
|
||||
merge = arg["merge"].(bool)
|
||||
}
|
||||
name, content := model.ExportHTML(id, savePath, pdf, keepFold, merge)
|
||||
name, content := model.ExportHTML(id, savePath, pdf, false, keepFold, merge)
|
||||
ret.Data = map[string]interface{}{
|
||||
"id": id,
|
||||
"name": name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue