mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 01:34:20 +01:00
🎨 Add internal kernel API /api/setting/addVirtualBlockRefInclude and addVirtualBlockRefExclude https://github.com/siyuan-note/siyuan/issues/9909
This commit is contained in:
parent
32ce33d0fb
commit
9052e4ff92
2 changed files with 3 additions and 6 deletions
|
|
@ -118,9 +118,6 @@ func AddVirtualBlockRefInclude(keyword []string) {
|
|||
return
|
||||
}
|
||||
|
||||
Conf.m.Lock()
|
||||
defer Conf.m.Unlock()
|
||||
|
||||
include := strings.ReplaceAll(Conf.Editor.VirtualBlockRefInclude, "\\,", "__comma@sep__")
|
||||
includes := strings.Split(include, ",")
|
||||
includes = append(includes, keyword...)
|
||||
|
|
@ -136,9 +133,6 @@ func AddVirtualBlockRefExclude(keyword []string) {
|
|||
return
|
||||
}
|
||||
|
||||
Conf.m.Lock()
|
||||
defer Conf.m.Unlock()
|
||||
|
||||
exclude := strings.ReplaceAll(Conf.Editor.VirtualBlockRefExclude, "\\,", "__comma@sep__")
|
||||
excludes := strings.Split(exclude, ",")
|
||||
excludes = append(excludes, keyword...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue