This commit is contained in:
Daniel 2023-09-06 16:14:43 +08:00
parent 16cb93d730
commit 4dd8ec6ccb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1850,6 +1850,10 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
mdTableRow.AppendChild(mdTableCell)
var val string
if nil != cell.Value {
if av.KeyTypeDate == cell.Value.Type && nil != cell.Value.Date {
cell.Value.Date = av.NewFormattedValueDate(cell.Value.Date.Content, cell.Value.Date.Content2, av.DateFormatNone)
}
val = cell.Value.String()
}
mdTableCell.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(val)})