Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniel4dd8ec6ccb34
diff --git a/kernel/model/export.go b/kernel/model/export.go
index 33e5b3e673..7acc00ddbc 100644
--- a/kernel/model/export.go
+++ b/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)})