Fixed layout, removed agressive highlighter and some console.logs

This commit is contained in:
Simon Cambier
2022-04-18 18:35:08 +02:00
parent a9e087bff7
commit 47b30b5c62
6 changed files with 30 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
import type { CachedMetadata } from 'obsidian'
import {
highlightClass,
isSearchMatch,
regexLineSplit,
regexYaml,
@@ -7,7 +8,7 @@ import {
import type { SearchMatch } from './globals'
export function highlighter(str: string): string {
return '<span class="search-result-file-matched-text">' + str + '</span>'
return `<span class="${highlightClass}">${str}</span>`
}
export function escapeHTML(html: string): string {