We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401f4d4 commit b8dd155Copy full SHA for b8dd155
docusaurus-search-local/src/client/theme/SearchBar/SearchBar.tsx
@@ -341,7 +341,9 @@ export default function SearchBar({
341
const mark = new Mark(root);
342
mark.unmark();
343
if (keywords.length !== 0) {
344
- mark.mark(keywords);
+ mark.mark(keywords, {
345
+ exclude: [".theme-doc-toc-mobile > button"],
346
+ });
347
}
348
349
// Apply any keywords to the search input so that we can clear marks in case we loaded a page with a highlight in the url
0 commit comments