enable footnotes, smart quotes and allow unsafe code
This commit is contained in:
parent
23f1135e37
commit
5a0b4444c8
1 changed files with 5 additions and 5 deletions
|
@ -41,12 +41,12 @@ pub fn get_options() -> ComrakOptions {
|
||||||
tasklist: true,
|
tasklist: true,
|
||||||
superscript: true,
|
superscript: true,
|
||||||
header_ids: Some(String::new()),
|
header_ids: Some(String::new()),
|
||||||
footnotes: false, // true?
|
footnotes: true,
|
||||||
description_lists: true,
|
description_lists: true,
|
||||||
front_matter_delimiter: Some("---".to_owned()),
|
front_matter_delimiter: Some("---".to_owned()),
|
||||||
},
|
},
|
||||||
parse: ComrakParseOptions {
|
parse: ComrakParseOptions {
|
||||||
smart: false, // true one day?
|
smart: true, // could be boring
|
||||||
default_info_string: Some("plaintext".to_owned()),
|
default_info_string: Some("plaintext".to_owned()),
|
||||||
relaxed_tasklist_matching: true,
|
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
|
hardbreaks: false, // could be true? change by metadata could be good for compatibility
|
||||||
github_pre_lang: false,
|
github_pre_lang: false,
|
||||||
full_info_string: true,
|
full_info_string: true,
|
||||||
width: 0, // 0 mean disabled?
|
width: 0, // 0 mean disabled?
|
||||||
unsafe_: false, // could be true? change by metadata could be good for compatibility
|
unsafe_: true,
|
||||||
escape: false, // may change in the future?
|
escape: false,
|
||||||
list_style: ListStyleType::Dash,
|
list_style: ListStyleType::Dash,
|
||||||
sourcepos: false,
|
sourcepos: false,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue