From 2eaa791349d5a91d0ded348c7e38ae2de9d5dd73 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 28 Feb 2020 08:17:01 +0100 Subject: [PATCH] Enable strikethrough in markdown filter --- components/templates/src/filters.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/templates/src/filters.rs b/components/templates/src/filters.rs index bc408392..555bbfed 100644 --- a/components/templates/src/filters.rs +++ b/components/templates/src/filters.rs @@ -18,6 +18,7 @@ pub fn markdown( let mut opts = cmark::Options::empty(); opts.insert(cmark::Options::ENABLE_TABLES); opts.insert(cmark::Options::ENABLE_FOOTNOTES); + opts.insert(cmark::Options::ENABLE_STRIKETHROUGH); let mut html = String::new(); let parser = cmark::Parser::new_ext(&s, opts);