🐛 存在命名的块复制为引用时未转义命名文本 Fix https://github.com/siyuan-note/siyuan/issues/7254
This commit is contained in:
parent
8c6b10a02b
commit
ea45e7ccb3
1 changed files with 4 additions and 2 deletions
|
@ -94,8 +94,10 @@ func GetBlockRefText(id string) string {
|
|||
}
|
||||
|
||||
func getNodeRefText(node *ast.Node) string {
|
||||
if name := node.IALAttr("name"); "" != name {
|
||||
return name
|
||||
if ret := node.IALAttr("name"); "" != ret {
|
||||
ret = strings.TrimSpace(ret)
|
||||
ret = util.EscapeHTML(ret)
|
||||
return ret
|
||||
}
|
||||
|
||||
switch node.Type {
|
||||
|
|
Loading…
Add table
Reference in a new issue