@easyops-cn/docusaurus-search-local 0.48.1 → 0.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.48.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.1...v0.48.2) (2025-01-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* excludes mobile toc button for search marks, fixes [#473](https://github.com/easyops-cn/docusaurus-search-local/issues/473) ([b8dd155](https://github.com/easyops-cn/docusaurus-search-local/commit/b8dd15559f22b7f914af8123ed7eaa60c0beac3b))
|
|
11
|
+
|
|
5
12
|
## [0.48.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.0...v0.48.1) (2025-01-16)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -255,7 +255,9 @@ export default function SearchBar({ handleSearchBarToggle, }) {
|
|
|
255
255
|
const mark = new Mark(root);
|
|
256
256
|
mark.unmark();
|
|
257
257
|
if (keywords.length !== 0) {
|
|
258
|
-
mark.mark(keywords
|
|
258
|
+
mark.mark(keywords, {
|
|
259
|
+
exclude: [".theme-doc-toc-mobile > button"],
|
|
260
|
+
});
|
|
259
261
|
}
|
|
260
262
|
// 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
|
|
261
263
|
setInputValue(keywords.join(" "));
|