pub struct Options {
pub stringify: StringifyOptions,
pub newlines: bool,
pub checked: Option<String>,
pub unchecked: Option<String>,
pub quotes: Vec<String>,
}Expand description
Conversion options.
Fields§
§stringify: StringifyOptionsSerializer formatting options.
newlines: boolWhether to preserve newlines in whitespace normalization.
checked: Option<String>Symbol for checked checkboxes/radio buttons. Default: "[x]".
unchecked: Option<String>Symbol for unchecked checkboxes/radio buttons. Default: "[ ]".
quotes: Vec<String>Quote character pairs for <q> elements, cycling by nesting depth.
Each entry is 1 or 2 chars: open (and optionally close).
Default: ['"'] (plain ASCII double-quote for both open and close).
Implementations§
Source§impl Options
impl Options
Sourcepub fn with_heading_style(self, style: HeadingStyle) -> Self
pub fn with_heading_style(self, style: HeadingStyle) -> Self
Set the heading style.
Sourcepub fn with_bullet(self, bullet: char) -> Self
pub fn with_bullet(self, bullet: char) -> Self
Sourcepub fn with_bullet_ordered(self, bullet: char) -> Self
pub fn with_bullet_ordered(self, bullet: char) -> Self
Sourcepub fn with_emphasis(self, marker: char) -> Self
pub fn with_emphasis(self, marker: char) -> Self
Sourcepub fn with_strong(self, marker: char) -> Self
pub fn with_strong(self, marker: char) -> Self
Sourcepub fn with_fence(self, fence: char) -> Self
pub fn with_fence(self, fence: char) -> Self
Sourcepub fn with_rule_repetition(self, count: u8) -> Self
pub fn with_rule_repetition(self, count: u8) -> Self
Sourcepub fn with_rule_spaces(self, spaces: bool) -> Self
pub fn with_rule_spaces(self, spaces: bool) -> Self
Set whether to use spaces in thematic breaks.
Sourcepub fn with_close_atx(self, close: bool) -> Self
pub fn with_close_atx(self, close: bool) -> Self
Set whether to close ATX headings with trailing hashes.
Sourcepub fn with_list_item_indent(self, indent: ListItemIndent) -> Self
pub fn with_list_item_indent(self, indent: ListItemIndent) -> Self
Set the list item indentation style.
Sourcepub fn with_increment_list_marker(self, increment: bool) -> Self
pub fn with_increment_list_marker(self, increment: bool) -> Self
Set whether to increment ordered list markers.
Sourcepub fn with_quote(self, quote: char) -> Self
pub fn with_quote(self, quote: char) -> Self
Sourcepub fn with_fences(self, fences: bool) -> Self
pub fn with_fences(self, fences: bool) -> Self
Set whether to always use fenced code blocks.
Sourcepub fn with_resource_link(self, resource: bool) -> Self
pub fn with_resource_link(self, resource: bool) -> Self
Set whether to always use resource links (never autolinks).
Sourcepub fn with_newlines(self, newlines: bool) -> Self
pub fn with_newlines(self, newlines: bool) -> Self
Set whether to preserve newlines in whitespace normalization.