mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 Improve av export md asset rendering
This commit is contained in:
parent
f0c8e08972
commit
bd515efcf1
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue