From e03a7ca758c26310095c89597019087043a37051 Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Mon, 26 Jul 2021 14:54:25 +0000 Subject: [PATCH] fix: remove markdown from search results --- _includes/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/search.html b/_includes/search.html index 4ee3698f..3f8984e6 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -54,7 +54,7 @@ window.content = { {% for card in the_cards %} "{{ card.url | slugify }}": { "title": "{{ card.shortcut | xml_escape }}", - "content": {{ card.content | strip_html | strip_newlines | truncate: 150 | jsonify }}, + "content": {{ card.content | markdownify | strip_html | strip_newlines | truncate: 150 | jsonify }}, "url": "{{ card.url | xml_escape | relative_url }}" } {% unless forloop.last %},{% endunless %} {% endfor %} }; -- GitLab