mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 14:38:14 +00:00
fix(style): search preview consistency
This commit is contained in:
parent
50bb1ffd8a
commit
e1f12e6cb7
2 changed files with 16 additions and 6 deletions
quartz/components/scripts
|
@ -20,8 +20,8 @@ type SearchType = "basic" | "tags"
|
|||
let searchType: SearchType = "basic"
|
||||
|
||||
const contextWindowWords = 30
|
||||
const numSearchResults = 5
|
||||
const numTagResults = 3
|
||||
const numSearchResults = 8
|
||||
const numTagResults = 5
|
||||
function highlight(searchTerm: string, text: string, trim?: boolean) {
|
||||
// try to highlight longest tokens first
|
||||
const tokenizedTerms = searchTerm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue