mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user