pub struct InlineParser {
pub process_links: bool,
pub process_images: bool,
/* private fields */
}Expand description
Inline markdown parser.
Parses inline formatting and returns structured elements.
Fields§
§process_links: boolWhether to process links
process_images: boolWhether to process images
Implementations§
Source§impl InlineParser
impl InlineParser
Sourcepub fn with_settings(process_links: bool, process_images: bool) -> Self
pub fn with_settings(process_links: bool, process_images: bool) -> Self
Create parser with specific settings.
Sourcepub fn parse(&mut self, line: &str) -> Vec<InlineElement>
pub fn parse(&mut self, line: &str) -> Vec<InlineElement>
Parse a line of markdown and return inline elements.
This is the main entry point for inline parsing.
Trait Implementations§
Source§impl Debug for InlineParser
impl Debug for InlineParser
Auto Trait Implementations§
impl Freeze for InlineParser
impl RefUnwindSafe for InlineParser
impl Send for InlineParser
impl Sync for InlineParser
impl Unpin for InlineParser
impl UnwindSafe for InlineParser
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