🎨 Improve error tip when renaming tags/bookmarks containing Markdown markers Fix https://github.com/siyuan-note/siyuan/issues/9248

This commit is contained in:
Daniel 2023-09-28 12:48:09 +08:00
parent 826c0f42ac
commit 8a7c64cdb4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 47 additions and 18 deletions

View file

@ -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)