Skip to content

Commit 1a0c296

Browse files
authored
Merge pull request #1426 from ehuss/search-mark-words
Fix search highlighting with multiple words.
2 parents 9b4ab72 + 2838713 commit 1a0c296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/searcher/searcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ window.search = window.search || {};
296296
}
297297

298298
if (url.params.hasOwnProperty(URL_MARK_PARAM)) {
299-
var words = url.params[URL_MARK_PARAM].split(' ');
299+
var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' ');
300300
marker.mark(words, {
301301
exclude: mark_exclude
302302
});

0 commit comments

Comments
 (0)