summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2021-01-14 17:01:52 -0800
committerGitHub <noreply@github.com>2021-01-14 17:01:52 -0800
commit1a0c296532a0ca03e7f2e8313cea65119f2b5b63 (patch)
treeb17ba8a86c4346579f547eec2f91c25ab0b4c822
parent9b4ab72a807b76f92b9271283082129f5b5b0a93 (diff)
parent28387130c02e6fdaaf1ccf90bc8c3915dd5c3860 (diff)
Merge pull request #1426 from ehuss/search-mark-words
Fix search highlighting with multiple words.
-rw-r--r--src/theme/searcher/searcher.js2
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
});