🎨 Improve indexing

This commit is contained in:
Daniel 2025-01-11 16:48:26 +08:00
parent 32ca803eb4
commit b62384428b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -741,6 +741,9 @@ func buildSpanFromNode(n *ast.Node, tree *parse.Tree, rootID, boxID, p string) (
if ast.NodeInlineHTML == n.Type {
// 没有行级 HTML只有块级 HTML这里转换为块
n.ID = ast.NewNodeID()
n.SetIALAttr("id", n.ID)
n.SetIALAttr("updated", n.ID[:14])
b, attrs := buildBlockFromNode(n, tree)
b.Type = ast.NodeHTMLBlock.String()
blocks = append(blocks, b)