From 28387130c02e6fdaaf1ccf90bc8c3915dd5c3860 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 4 Jan 2021 14:20:36 -0800 Subject: [PATCH] Fix search highlighting with multiple words. --- src/theme/searcher/searcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/searcher/searcher.js b/src/theme/searcher/searcher.js index acf3d50c..3bfdc3e4 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 });