mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🐛 Flashcard management will be incorrectly highlighted after global search https://github.com/siyuan-note/siyuan/issues/13898
This commit is contained in:
parent
cea5821c0b
commit
c5136f28f1
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
package sql
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/88250/lute/ast"
|
||||
|
@ -25,6 +26,7 @@ import (
|
|||
"github.com/jinzhu/copier"
|
||||
gcache "github.com/patrickmn/go-cache"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/search"
|
||||
)
|
||||
|
||||
var cacheDisabled = true
|
||||
|
@ -57,6 +59,8 @@ func putBlockCache(block *Block) {
|
|||
logging.LogErrorf("clone block failed: %v", err)
|
||||
return
|
||||
}
|
||||
cloned.Content = strings.ReplaceAll(cloned.Content, search.SearchMarkLeft, "")
|
||||
cloned.Content = strings.ReplaceAll(cloned.Content, search.SearchMarkRight, "")
|
||||
blockCache.Set(cloned.ID, cloned, 1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue