Merge pull request #1426 from ehuss/search-mark-words

Fix search highlighting with multiple words.
This commit is contained in:
Eric Huss 2021-01-14 17:01:52 -08:00 committed by GitHub
commit 1a0c296532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
});