#[derive(Debug, Clone)]
pub struct MarkdownOptions {
pub heading_style: HeadingStyle,
pub bullet_char: char,
pub code_fence: char,
pub emphasis_delimiter: char,
pub strong_delimiter: String,
pub link_style: LinkStyle,
pub preserve_complex_tables: bool,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum HeadingStyle {
Atx,
Setext,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum LinkStyle {
Inline,
Reference,
}
impl Default for MarkdownOptions {
fn default() -> Self {
Self {
heading_style: HeadingStyle::Atx,
bullet_char: '-',
code_fence: '`',
emphasis_delimiter: '*',
strong_delimiter: "**".to_string(),
link_style: LinkStyle::Inline,
preserve_complex_tables: true,
}
}
}