pub enum MarkdownNode {
Heading {
level: HeadingLevel,
text: Text,
},
Paragraph {
text: Text,
},
BlockQuote {
kind: Option<BlockQuoteKind>,
nodes: Vec<Node>,
},
CodeBlock {
lang: Option<String>,
text: Text,
},
Item {
kind: Option<ItemKind>,
text: Text,
},
}Expand description
The Markdown AST node enumeration.
Variants§
Heading
A heading node that represents different heading levels.
The level is controlled with the HeadingLevel definition.
Paragraph
BlockQuote
A block quote node that represents different quote block variants including callout blocks.
The variant is controlled with the BlockQuoteKind definition. When BlockQuoteKind
is None the block quote should be interpreted as a regular block quote:
"> Block quote".
CodeBlock
A fenced code block, optionally with a language identifier.
Item
Trait Implementations§
Source§impl Clone for MarkdownNode
impl Clone for MarkdownNode
Source§fn clone(&self) -> MarkdownNode
fn clone(&self) -> MarkdownNode
Returns a copy 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 MarkdownNode
impl Debug for MarkdownNode
Source§impl PartialEq for MarkdownNode
impl PartialEq for MarkdownNode
impl StructuralPartialEq for MarkdownNode
Auto Trait Implementations§
impl Freeze for MarkdownNode
impl RefUnwindSafe for MarkdownNode
impl Send for MarkdownNode
impl Sync for MarkdownNode
impl Unpin for MarkdownNode
impl UnwindSafe for MarkdownNode
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