Skip to content

Commit

Permalink
Merge pull request #1426 from ehuss/search-mark-words
Browse files Browse the repository at this point in the history
Fix search highlighting with multiple words.
  • Loading branch information
ehuss committed Jan 15, 2021
2 parents 9b4ab72 + 2838713 commit 1a0c296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/searcher/searcher.js
Expand Up @@ -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
});
Expand Down

0 comments on commit 1a0c296

Please sign in to comment.