From f17700afe3a397fcd517571cb6a2f59ff989de18 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Sun, 6 Jan 2019 15:51:17 -0500 Subject: [PATCH] Better search index --- assets/js/search-data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/search-data.json b/assets/js/search-data.json index fd1037d..12de522 100644 --- a/assets/js/search-data.json +++ b/assets/js/search-data.json @@ -4,7 +4,7 @@ {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": { "id": "{{ forloop.index0 }}", "title": "{{ page.title | xml_escape }}", - "content": "{{ page.content | markdownify | strip_html | json_escape | xml_escape | remove: 'Table of contents' | strip_newlines | replace: '\', ' ' | replace: '```', '' | replace: ' ', ' ' }}", + "content": "{{ page.content | newline_to_br | replace: '
', ' ' | replace: '', ' ' | strip_newlines | markdownify | strip_html | remove: 'Table of contents' | xml_excape | escape | replace: '\', ' ' | replace: '```', '' | replace: ' ', ' ' | replace: ' ', ' ' | remove: '---' | remove: '#####' | remove: '####' | remove: '###' | remove: '##' | strip_newlines }}", "url": "{{ page.url | absolute_url | xml_escape }}", "relUrl": "{{ page.url | xml_escape }}" }{% if forloop.last %}{% else %},{% endif %}