pub struct Tokenizer {
pub process_links: bool,
pub process_images: bool,
}Expand description
Tokenizer for inline markdown content.
Fields§
§process_links: boolWhether to process links
process_images: boolWhether to process images
Implementations§
Source§impl Tokenizer
impl Tokenizer
Sourcepub fn with_settings(process_links: bool, process_images: bool) -> Self
pub fn with_settings(process_links: bool, process_images: bool) -> Self
Create a tokenizer with specific settings.
Sourcepub fn tokenize(&self, line: &str) -> Vec<Token>
pub fn tokenize(&self, line: &str) -> Vec<Token>
Tokenize a line of markdown content.
This extracts links, images, footnotes, and inline formatting markers.
Sourcepub fn tokenize_inline(&self, text: &str, tokens: &mut Vec<Token>)
pub fn tokenize_inline(&self, text: &str, tokens: &mut Vec<Token>)
Tokenize inline content for formatting markers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tokenizer
impl RefUnwindSafe for Tokenizer
impl Send for Tokenizer
impl Sync for Tokenizer
impl Unpin for Tokenizer
impl UnwindSafe for Tokenizer
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