Trying Svelte, displaying the number of matches

This commit is contained in:
Simon Cambier
2022-04-15 20:39:08 +02:00
parent e5ba366840
commit 66b8980255
6 changed files with 52 additions and 34 deletions

View File

@@ -1,11 +1,11 @@
import { CachedMetadata } from 'obsidian'
import type { CachedMetadata } from 'obsidian'
import {
isSearchMatch,
regexLineSplit,
regexWikilink,
regexYaml,
SearchMatch,
} from './globals'
import type { SearchMatch } from './globals'
export function highlighter(str: string): string {
return '<span class="search-result-file-matched-text">' + str + '</span>'