Improve the quality of snippets for search results (#6828)

* Improve the quality of snippets for search results

* Prefer full match

* tweak highlight regex
This commit is contained in:
Tom Moor
2024-04-22 07:40:13 -04:00
committed by GitHub
parent 9855adcd3b
commit 3825bc4181
4 changed files with 176 additions and 51 deletions

View File

@@ -1,8 +0,0 @@
declare module "@tommoor/remove-markdown" {
export default function removeMarkdown(
text: string,
options?: {
stripHTML: boolean;
}
): string;
}