Ver código fonte

:art: Attribute View export https://github.com/siyuan-note/siyuan/issues/8710

Daniel 1 ano atrás
pai
commit
4dd8ec6ccb
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      kernel/model/export.go

+ 4 - 0
kernel/model/export.go

@@ -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)})