#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum IndentOptions {
Mixed,
One,
Tab,
}
#[derive(Clone, Debug)]
pub struct Options {
pub bullet: char,
pub bullet_ordered: char,
pub bullet_other: char,
pub close_atx: bool,
pub emphasis: char,
pub fence: char,
pub fences: bool,
pub increment_list_marker: bool,
pub list_item_indent: IndentOptions,
pub quote: char,
pub resource_link: bool,
pub rule: char,
pub rule_repetition: u32,
pub rule_spaces: bool,
pub setext: bool,
pub single_dollar_text_math: bool,
pub strong: char,
pub tight_definitions: bool,
}
impl Default for Options {
fn default() -> Self {
Self {
bullet: '*',
bullet_ordered: '.',
bullet_other: '-',
close_atx: false,
emphasis: '*',
fence: '`',
fences: true,
increment_list_marker: true,
list_item_indent: IndentOptions::One,
quote: '"',
resource_link: false,
rule: '*',
rule_repetition: 3,
rule_spaces: false,
setext: false,
single_dollar_text_math: true,
strong: '*',
tight_definitions: false,
}
}
}