From fd32095929e8d3fc3f9e52757e3144c683898a00 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 25 Oct 2023 09:30:23 +0800 Subject: [PATCH] :art: Add `data-doc-type` and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497 --- kernel/api/export.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/api/export.go b/kernel/api/export.go index 651efd3d4..edf88d88c 100644 --- a/kernel/api/export.go +++ b/kernel/api/export.go @@ -467,6 +467,7 @@ func exportPreviewHTML(c *gin.Context) { // 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894 content = strings.ReplaceAll(content, "http://"+util.LocalHost+":"+util.ServerPort+"/#", "#") + // Add `data-doc-type` and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497 attrs := map[string]string{} var typ string if nil != node {