pub struct ConversionOptions {Show 32 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 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 hocr_extract_tables: bool,
pub hocr_table_column_threshold: u32,
pub hocr_table_row_threshold_ratio: f64,
pub preprocessing: PreprocessingOptions,
pub parsing: ParsingOptions,
pub debug: bool,
pub strip_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
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)
hocr_extract_tables: boolEnable hOCR table extraction
hocr_table_column_threshold: u32Column threshold for hOCR table detection (pixels)
hocr_table_row_threshold_ratio: f64Row threshold ratio for hOCR table detection
preprocessing: PreprocessingOptionsPreprocessing options
parsing: ParsingOptionsParsing options
debug: boolEnable debug mode with diagnostic warnings
List of HTML tags to strip (output only text content, no markdown conversion)
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