mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 06:32:33 +01:00
🎨 Improve error tip when renaming tags/bookmarks containing Markdown markers Fix https://github.com/siyuan-note/siyuan/issues/9248
This commit is contained in:
parent
826c0f42ac
commit
8a7c64cdb4
3 changed files with 47 additions and 18 deletions
|
|
@ -129,6 +129,10 @@ func getBlockRefText(id string, tree *parse.Tree) (ret string) {
|
|||
}
|
||||
|
||||
func getNodeRefText(node *ast.Node) string {
|
||||
if nil == node {
|
||||
return ""
|
||||
}
|
||||
|
||||
if ret := node.IALAttr("name"); "" != ret {
|
||||
ret = strings.TrimSpace(ret)
|
||||
ret = util.EscapeHTML(ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue