mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01: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
|
package sql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/88250/lute/ast"
|
"github.com/88250/lute/ast"
|
||||||
|
|
@ -25,6 +26,7 @@ import (
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
gcache "github.com/patrickmn/go-cache"
|
gcache "github.com/patrickmn/go-cache"
|
||||||
"github.com/siyuan-note/logging"
|
"github.com/siyuan-note/logging"
|
||||||
|
"github.com/siyuan-note/siyuan/kernel/search"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cacheDisabled = true
|
var cacheDisabled = true
|
||||||
|
|
@ -57,6 +59,8 @@ func putBlockCache(block *Block) {
|
||||||
logging.LogErrorf("clone block failed: %v", err)
|
logging.LogErrorf("clone block failed: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
cloned.Content = strings.ReplaceAll(cloned.Content, search.SearchMarkLeft, "")
|
||||||
|
cloned.Content = strings.ReplaceAll(cloned.Content, search.SearchMarkRight, "")
|
||||||
blockCache.Set(cloned.ID, cloned, 1)
|
blockCache.Set(cloned.ID, cloned, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue