Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 复制带超链接的图片无法保存到本地 Fix https://github.com/siyuan-note/siyuan/issues/5993

Liang Dingd7a4f25ed8f4
diff --git a/kernel/api/lute.go b/kernel/api/lute.go
index ebef8d1fe3..efe394c58e 100644
--- a/kernel/api/lute.go
+++ b/kernel/api/lute.go
@@ -120,6 +120,9 @@ func html2BlockDOM(c *gin.Context) {
})
}
+ // 复制带超链接的图片无法保存到本地 https://github.com/siyuan-note/siyuan/issues/5993
+ luteEngine.NestedInlines2FlattedSpans(tree)
+
renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)
output := renderer.Render()
ret.Data = gulu.Str.FromBytes(output)