Skip to content

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

:art: Improve image export size for database assets fields https://github.com/siyuan-note/siyuan/issues/16470

Daniel315618a77c05
diff --git a/kernel/model/export.go b/kernel/model/export.go
index 6cb09acb92..f255a14a7a 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -2840,6 +2840,10 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
img.AppendChild(&ast.Node{Type: ast.NodeLinkDest, Tokens: []byte(a.Content)})
img.AppendChild(&ast.Node{Type: ast.NodeCloseParen})
mdTableCell.AppendChild(img)
+ height := "height: 128px;"
+ spanIAL := &ast.Node{Type: ast.NodeKramdownSpanIAL, Tokens: []byte("style=\"" + height + "\"")}
+ mdTableCell.AppendChild(spanIAL)
+ img.SetIALAttr("style", height)
} else if av.AssetTypeFile == a.Type {
linkText := strings.TrimSpace(a.Name)
if "" == linkText {