pub struct MarkdownParser { /* private fields */ }Expand description
Production-ready Markdown parser.
Built on pulldown-cmark for robust CommonMark/GFM parsing.
§Features
- CommonMark compliant
- GitHub Flavored Markdown (GFM) extensions
- YAML/TOML frontmatter extraction
- Configurable parsing behavior
§Example
use vectorless::parser::markdown::MarkdownParser;
use vectorless::parser::DocumentParser;
let parser = MarkdownParser::new();
let result = parser.parse("# Title\n\nContent").await?;
println!("Found {} nodes", result.node_count());Implementations§
Source§impl MarkdownParser
impl MarkdownParser
Sourcepub fn with_config(config: MarkdownConfig) -> Self
pub fn with_config(config: MarkdownConfig) -> Self
Create a parser with custom configuration.
Trait Implementations§
Source§impl Clone for MarkdownParser
impl Clone for MarkdownParser
Source§fn clone(&self) -> MarkdownParser
fn clone(&self) -> MarkdownParser
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 MarkdownParser
impl Debug for MarkdownParser
Source§impl Default for MarkdownParser
impl Default for MarkdownParser
Source§impl DocumentParser for MarkdownParser
impl DocumentParser for MarkdownParser
Source§fn format(&self) -> DocumentFormat
fn format(&self) -> DocumentFormat
Get the document format this parser handles.
Auto Trait Implementations§
impl Freeze for MarkdownParser
impl RefUnwindSafe for MarkdownParser
impl Send for MarkdownParser
impl Sync for MarkdownParser
impl Unpin for MarkdownParser
impl UnsafeUnpin for MarkdownParser
impl UnwindSafe for MarkdownParser
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more