From 05d296c247588c2ab32f4f841a20930a4ad91095 Mon Sep 17 00:00:00 2001
From: Ben McGough
Date: Tue, 9 Oct 2018 10:54:36 -0700
Subject: [PATCH] Fix Lunr search index merging words (#1884)
Close #1883
---
assets/js/lunr/lunr-store.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/assets/js/lunr/lunr-store.js b/assets/js/lunr/lunr-store.js
index 434b5997..660e9f2b 100644
--- a/assets/js/lunr/lunr-store.js
+++ b/assets/js/lunr/lunr-store.js
@@ -18,7 +18,8 @@ var store = [
"title": {{ doc.title | jsonify }},
"excerpt":
{%- if site.search_full_content == true -%}
- {{ doc.content |
+ {{ doc.content | newline_to_br |
+ replace:"
", " " |
replace:"
", " " |
replace:"", " " |
replace:"", " " |
@@ -28,7 +29,8 @@ var store = [
replace:"", " "|
strip_html | strip_newlines | jsonify }},
{%- else -%}
- {{ doc.content |
+ {{ doc.content | newline_to_br |
+ replace:"
", " " |
replace:"", " " |
replace:"", " " |
replace:"", " " |