mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve indexing
This commit is contained in:
parent
32ca803eb4
commit
b62384428b
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue