pub struct ParseOptions {
pub parse_frontmatter: bool,
pub parse_wikilinks: bool,
pub parse_markdown_links: bool,
pub parse_headings: bool,
pub parse_tasks: bool,
pub parse_callouts: bool,
pub parse_tags: bool,
pub full_callouts: bool,
}Expand description
Options for selective parsing.
Use this to parse only the elements you need, improving performance for large documents when you don’t need all OFM features.
Fields§
§parse_frontmatter: boolParse YAML frontmatter
parse_wikilinks: boolParse wikilinks and embeds
parse_markdown_links: boolParse markdown links text
parse_headings: boolParse headings (H1-H6)
parse_tasks: boolParse task items (- [ ] / - [x])
parse_callouts: boolParse callout blocks (> [!NOTE])
Parse inline tags (#tag)
full_callouts: boolUse full callout parsing (extracts multi-line content)
Implementations§
Source§impl ParseOptions
impl ParseOptions
Sourcepub fn links_only() -> Self
pub fn links_only() -> Self
Preset for link analysis: wikilinks + markdown links + embeds.
Sourcepub fn with_frontmatter(self) -> Self
pub fn with_frontmatter(self) -> Self
Builder method to enable frontmatter parsing.
Sourcepub fn with_full_callouts(self) -> Self
pub fn with_full_callouts(self) -> Self
Builder method to enable full callout parsing.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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