pub struct MarkdownProcessor { /* private fields */ }Implementations§
Source§impl MarkdownProcessor
impl MarkdownProcessor
pub fn new(options: ProcessorOptions) -> Self
pub fn with_cache_capacity(options: ProcessorOptions, cap: usize) -> Self
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Cache effectiveness since the processor was created.
pub fn normalize(&self, content: &str) -> String
pub fn preprocess(&self, content: &str) -> String
pub fn parse_markdown_into_blocks(&self, content: &str) -> Vec<String>
Sourcepub fn parse(&mut self, content: &str) -> Option<Ast>
pub fn parse(&mut self, content: &str) -> Option<Ast>
Parse a single content string into its AST (through the cache).
Sourcepub fn process(&mut self, content: &str, mode: Mode) -> Document
pub fn process(&mut self, content: &str, mode: Mode) -> Document
The main entry: full markdown content -> blocks + per-block ASTs.
pub fn process_streaming(&mut self, content: &str) -> Document
pub fn process_static(&mut self, content: &str) -> Document
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MarkdownProcessor
impl RefUnwindSafe for MarkdownProcessor
impl Send for MarkdownProcessor
impl Sync for MarkdownProcessor
impl Unpin for MarkdownProcessor
impl UnsafeUnpin for MarkdownProcessor
impl UnwindSafe for MarkdownProcessor
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