Commit e41e020
feat(search): exclude code from the Pagefind index (#306)
Register the rehype-pagefind-ignore plugin from igniteui-astro-components in
the rehype pipeline. It marks code blocks and single character inline code
with data-pagefind-ignore so Pagefind stops indexing their one letter tokens,
which were producing weak, irrelevant prefix matches (for example a search for
"twitter" matching the "t" in "keyof T" across unrelated API pages).
Co-authored-by: Stamen Stoychev <sstoychev@infragistics.com>1 parent 424ef89 commit e41e020
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
| 618 | + | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
| |||
0 commit comments