pub struct HtmlOptions {
pub y_tolerance: f64,
pub y_density: f64,
pub x_density: f64,
pub heading_min_ratio: f64,
pub detect_lists: bool,
pub detect_emphasis: bool,
}Expand description
Options for HTML rendering.
Fields§
§y_tolerance: f64Vertical tolerance for clustering words into lines (in points).
y_density: f64Maximum vertical gap for grouping lines into blocks (in points).
x_density: f64Minimum horizontal gap to detect column boundaries (in points).
heading_min_ratio: f64Minimum font size ratio (relative to median) to consider text a heading.
detect_lists: boolWhether to detect bullet/numbered lists from text patterns.
detect_emphasis: boolWhether to detect bold/italic from font name analysis.
Trait Implementations§
Source§impl Clone for HtmlOptions
impl Clone for HtmlOptions
Source§fn clone(&self) -> HtmlOptions
fn clone(&self) -> HtmlOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 HtmlOptions
impl Debug for HtmlOptions
Auto Trait Implementations§
impl Freeze for HtmlOptions
impl RefUnwindSafe for HtmlOptions
impl Send for HtmlOptions
impl Sync for HtmlOptions
impl Unpin for HtmlOptions
impl UnsafeUnpin for HtmlOptions
impl UnwindSafe for HtmlOptions
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