Enable strikethrough in markdown filter

This commit is contained in:
Vincent Prouillet 2020-02-28 08:17:01 +01:00
parent 073e24659d
commit 2eaa791349

View file

@ -18,6 +18,7 @@ pub fn markdown<S: BuildHasher>(
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);