pub struct EnhancedOptions {
pub extract_latex: bool,
pub extract_metadata: bool,
pub post_process: bool,
pub detect_code_language: bool,
pub content_selector: Option<String>,
pub body_selector: Option<String>,
}Expand description
Options for enhanced HTML-to-Markdown conversion.
Fields§
§extract_latex: boolExtract LaTeX formulas from img.formula, KaTeX, MathJax elements.
extract_metadata: boolExtract article metadata (author, date, hubs, tags).
post_process: boolApply post-processing (unicode normalization, LaTeX spacing, etc.).
detect_code_language: boolDetect and correct code block languages.
content_selector: Option<String>CSS selector used to scope Markdown conversion.
body_selector: Option<String>CSS selector for article body Markdown; prepends the selected article title when available.
Trait Implementations§
Source§impl Clone for EnhancedOptions
impl Clone for EnhancedOptions
Source§fn clone(&self) -> EnhancedOptions
fn clone(&self) -> EnhancedOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnhancedOptions
impl Debug for EnhancedOptions
Auto Trait Implementations§
impl Freeze for EnhancedOptions
impl RefUnwindSafe for EnhancedOptions
impl Send for EnhancedOptions
impl Sync for EnhancedOptions
impl Unpin for EnhancedOptions
impl UnsafeUnpin for EnhancedOptions
impl UnwindSafe for EnhancedOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more