mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
🎨 Improve av export md asset rendering
This commit is contained in:
parent
f0c8e08972
commit
bd515efcf1
@ -1956,6 +1956,18 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
|
||||
if nil != cell.Value.Updated {
|
||||
cell.Value.Updated = av.NewFormattedValueUpdated(cell.Value.Updated.Content, 0, av.UpdatedFormatNone)
|
||||
}
|
||||
} else if av.KeyTypeMAsset == cell.Value.Type {
|
||||
if nil != cell.Value.MAsset {
|
||||
buf := &bytes.Buffer{}
|
||||
for _, a := range cell.Value.MAsset {
|
||||
buf.WriteString("
|
||||
buf.WriteString(a.Content)
|
||||
buf.WriteString(") ")
|
||||
}
|
||||
val = strings.TrimSpace(buf.String())
|
||||
mdTableCell.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(val)})
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
val = cell.Value.String()
|
||||
|
Loading…
Reference in New Issue
Block a user