From 7d71b600e4bbf0c2157f559eaded88d541ef3268 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 31 Mar 2024 13:36:22 +0200 Subject: [PATCH] update with new comrak features --- src/misc/markdown.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/misc/markdown.rs b/src/misc/markdown.rs index 0b67f12..e02916a 100644 --- a/src/misc/markdown.rs +++ b/src/misc/markdown.rs @@ -118,6 +118,9 @@ pub fn get_options() -> ComrakOptions { options.extension.footnotes = true; options.extension.description_lists = true; options.extension.front_matter_delimiter = Some("---".into()); + options.extension.multiline_block_quotes = true; + options.extension.math_dollars = true; + options.extension.math_code = false; // Parser options.parse.smart = true; // could be boring @@ -134,6 +137,7 @@ pub fn get_options() -> ComrakOptions { options.render.escape = false; options.render.list_style = ListStyleType::Dash; options.render.sourcepos = false; + options.render.escaped_char_spans = false; options }