This commit is contained in:
Daniel 2025-06-10 22:53:49 +08:00
parent 7afd615f9a
commit 4ec8bf111b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -443,7 +443,15 @@ func fillGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues
if ast.NodeDocument == node.Type { if ast.NodeDocument == node.Type {
node = node.FirstChild node = node.FirstChild
} }
galleryCard.CoverContent = renderBlockDOMByNode(node, luteEngine)
buf := strings.Builder{}
for c := node; nil != c; c = c.Next {
buf.WriteString(renderBlockDOMByNode(c, luteEngine))
if 1024*4 < buf.Len() {
break
}
}
galleryCard.CoverContent = buf.String()
return return
} }
} }