mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
🎨 Improve image export size for database assets fields https://github.com/siyuan-note/siyuan/issues/16470
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
8f0a9e052c
commit
315618a77c
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue