diff options
author | Eric Huss <eric@huss.org> | 2021-01-14 17:01:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 17:01:52 -0800 |
commit | 1a0c296532a0ca03e7f2e8313cea65119f2b5b63 (patch) | |
tree | b17ba8a86c4346579f547eec2f91c25ab0b4c822 | |
parent | 9b4ab72a807b76f92b9271283082129f5b5b0a93 (diff) | |
parent | 28387130c02e6fdaaf1ccf90bc8c3915dd5c3860 (diff) |
Merge pull request #1426 from ehuss/search-mark-words
Fix search highlighting with multiple words.
-rw-r--r-- | src/theme/searcher/searcher.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theme/searcher/searcher.js b/src/theme/searcher/searcher.js index 586a5c44..d2b0aeed 100644 --- a/src/theme/searcher/searcher.js +++ b/src/theme/searcher/searcher.js @@ -296,7 +296,7 @@ window.search = window.search || {}; } if (url.params.hasOwnProperty(URL_MARK_PARAM)) { - var words = url.params[URL_MARK_PARAM].split(' '); + var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' '); marker.mark(words, { exclude: mark_exclude }); |