enable footnotes, smart quotes and allow unsafe code

This commit is contained in:
Mylloon 2023-04-24 20:58:47 +02:00
parent 23f1135e37
commit 5a0b4444c8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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,
},