mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +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
20cd3c5f80
commit
4283f73407
8 changed files with 13 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue