mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Remove the av-names attribute from block elements (#16424)
This commit is contained in:
parent
f6611ccc7f
commit
8a1703e34a
7 changed files with 25 additions and 8 deletions
|
|
@ -190,6 +190,11 @@ func renderBlockDOMByNodes(nodes []*ast.Node, luteEngine *lute.Lute) string {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 填充属性视图角标之后即可移除 av-names 属性
|
||||
if n.IsBlock() && "" != n.IALAttr(av.NodeAttrViewNames) {
|
||||
n.RemoveIALAttr(av.NodeAttrViewNames)
|
||||
}
|
||||
}
|
||||
|
||||
rendererFunc := blockRenderer.RendererFuncs[n.Type]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue