mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +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
dbd829a4a0
commit
fd32095929
1 changed files with 1 additions and 0 deletions
|
|
@ -467,6 +467,7 @@ func exportPreviewHTML(c *gin.Context) {
|
||||||
// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894
|
// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894
|
||||||
content = strings.ReplaceAll(content, "http://"+util.LocalHost+":"+util.ServerPort+"/#", "#")
|
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{}
|
attrs := map[string]string{}
|
||||||
var typ string
|
var typ string
|
||||||
if nil != node {
|
if nil != node {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue