From 5a0b4444c87f4a7dae88d06d5b3a6e87214fd51c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 24 Apr 2023 20:58:47 +0200 Subject: [PATCH] enable footnotes, smart quotes and allow unsafe code --- src/misc/markdown.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/misc/markdown.rs b/src/misc/markdown.rs index 288300d..0b33e73 100644 --- a/src/misc/markdown.rs +++ b/src/misc/markdown.rs @@ -41,12 +41,12 @@ pub fn get_options() -> ComrakOptions { tasklist: true, superscript: true, header_ids: Some(String::new()), - footnotes: false, // true? + footnotes: true, description_lists: true, front_matter_delimiter: Some("---".to_owned()), }, parse: ComrakParseOptions { - smart: false, // true one day? + smart: true, // could be boring default_info_string: Some("plaintext".to_owned()), relaxed_tasklist_matching: true, }, @@ -54,9 +54,9 @@ pub fn get_options() -> ComrakOptions { hardbreaks: false, // could be true? change by metadata could be good for compatibility github_pre_lang: false, full_info_string: true, - width: 0, // 0 mean disabled? - unsafe_: false, // could be true? change by metadata could be good for compatibility - escape: false, // may change in the future? + width: 0, // 0 mean disabled? + unsafe_: true, + escape: false, list_style: ListStyleType::Dash, sourcepos: false, },