pub struct MarkdownOptions {
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 Markdown 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. A ratio of 1.2 means text must be at least 20% larger than the median.
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 MarkdownOptions
impl Clone for MarkdownOptions
Source§fn clone(&self) -> MarkdownOptions
fn clone(&self) -> MarkdownOptions
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 MarkdownOptions
impl Debug for MarkdownOptions
Auto Trait Implementations§
impl Freeze for MarkdownOptions
impl RefUnwindSafe for MarkdownOptions
impl Send for MarkdownOptions
impl Sync for MarkdownOptions
impl Unpin for MarkdownOptions
impl UnsafeUnpin for MarkdownOptions
impl UnwindSafe for MarkdownOptions
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