pub struct ConversionOptions {Show 31 fields
pub heading_style: HeadingStyle,
pub list_indent_type: ListIndentType,
pub list_indent_width: usize,
pub bullets: String,
pub strong_em_symbol: char,
pub escape_asterisks: bool,
pub escape_underscores: bool,
pub escape_misc: bool,
pub escape_ascii: bool,
pub code_language: String,
pub autolinks: bool,
pub default_title: bool,
pub br_in_tables: bool,
pub hocr_spatial_tables: bool,
pub highlight_style: HighlightStyle,
pub extract_metadata: bool,
pub whitespace_mode: WhitespaceMode,
pub strip_newlines: bool,
pub wrap: bool,
pub wrap_width: usize,
pub convert_as_inline: bool,
pub sub_symbol: String,
pub sup_symbol: String,
pub newline_style: NewlineStyle,
pub code_block_style: CodeBlockStyle,
pub keep_inline_images_in: Vec<String>,
pub preprocessing: PreprocessingOptions,
pub encoding: String,
pub debug: bool,
pub strip_tags: Vec<String>,
pub preserve_tags: Vec<String>,
}Expand description
Main conversion options.
Fields§
§heading_style: HeadingStyleHeading style
list_indent_type: ListIndentTypeList indentation type
list_indent_width: usizeList indentation width (spaces)
bullets: StringBullet characters for unordered lists
strong_em_symbol: charSymbol for strong/emphasis (* or _)
escape_asterisks: boolEscape asterisks in text
escape_underscores: boolEscape underscores in text
escape_misc: boolEscape misc markdown characters
escape_ascii: boolEscape all ASCII punctuation (for CommonMark spec compliance tests)
code_language: StringDefault code language
autolinks: boolUse autolinks for bare URLs
default_title: boolAdd default title if none exists
br_in_tables: boolUse
in tables instead of spaces
hocr_spatial_tables: boolEnable spatial table reconstruction in hOCR documents
highlight_style: HighlightStyleHighlight style for elements
extract_metadata: boolExtract metadata from HTML
whitespace_mode: WhitespaceModeWhitespace handling mode
strip_newlines: boolStrip newlines from HTML before processing
wrap: boolEnable text wrapping
wrap_width: usizeText wrap width
convert_as_inline: boolTreat block elements as inline
sub_symbol: StringSubscript symbol
sup_symbol: StringSuperscript symbol
newline_style: NewlineStyleNewline style
code_block_style: CodeBlockStyleCode block style
keep_inline_images_in: Vec<String>Elements where images should remain as markdown (not converted to alt text)
preprocessing: PreprocessingOptionsPreprocessing options
encoding: StringSource encoding (informational)
debug: boolEnable debug mode with diagnostic warnings
List of HTML tags to strip (output only text content, no markdown conversion)
List of HTML tags to preserve as-is in the output (keep original HTML) Useful for complex elements like tables that don’t convert well to Markdown
Trait Implementations§
Source§impl Clone for ConversionOptions
impl Clone for ConversionOptions
Source§fn clone(&self) -> ConversionOptions
fn clone(&self) -> ConversionOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more