🎨 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 10:59:50 +08:00
parent 20cd3c5f80
commit 4283f73407
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 13 additions and 13 deletions

View file

@ -21,17 +21,17 @@ import (
"github.com/88250/lute/lex"
)
func ContainsMarker(str string) bool {
func ContainsMarker(str string) (ret string) {
if !gulu.Str.IsASCII(str) {
return false
return
}
for _, token := range str {
if IsMarker(byte(token)) {
return true
return string(token)
}
}
return false
return
}
func IsMarker(token byte) bool {