This commit is contained in:
Daniel 2024-11-22 22:59:55 +08:00
parent b6cd6930c7
commit 83b932478e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -598,6 +598,12 @@ func normalizeTree(tree *parse.Tree) (yfmRootID, yfmTitle, yfmUpdated string) {
}
if "tags" == attrK {
var tags string
if str, ok := attrV.(string); ok {
tags = strings.TrimSpace(str)
tree.Root.SetIALAttr("tags", tags)
continue
}
for i, tag := range attrV.([]any) {
tagStr := strings.TrimSpace(tag.(string))
if "" == tag {