Struct markdown_it::MarkdownIt
source · [−]pub struct MarkdownIt {
pub block: BlockParser,
pub inline: InlineParser,
pub ext: MarkdownItExtSet,
pub max_nesting: u32,
/* private fields */
}Expand description
Main parser struct, created once and reused for parsing multiple documents.
Fields
block: BlockParserBlock-level tokenizer.
inline: InlineParserInline-level tokenizer.
ext: MarkdownItExtSetStorage for custom data used in plugins.
max_nesting: u32Maximum depth of the generated AST, exists to prevent recursion (if markdown source reaches this depth, deeply nested structures will be parsed as plain text).
Implementations
Trait Implementations
sourceimpl Debug for MarkdownIt
impl Debug for MarkdownIt
Auto Trait Implementations
impl !RefUnwindSafe for MarkdownIt
impl Send for MarkdownIt
impl Sync for MarkdownIt
impl Unpin for MarkdownIt
impl !UnwindSafe for MarkdownIt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more