From c7cad43f1c2c0eef776d611de2f0ba48dfc66385 Mon Sep 17 00:00:00 2001 From: Ben McGough Date: Mon, 8 Oct 2018 15:15:03 -0700 Subject: [PATCH] newline to br then br to space --- 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 434b59978bee..660e9f2b23ed 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:"", " " |