pub enum Node {
Heading {
level: u8,
content: String,
id: String,
},
Paragraph(Vec<InlineNode>),
BlockQuote(Vec<Node>),
CodeBlock {
language: Option<String>,
content: String,
attributes: HashMap<String, String>,
},
List {
ordered: bool,
items: Vec<Vec<Node>>,
},
ThematicBreak,
Component {
name: String,
attributes: HashMap<String, String>,
children: Vec<Node>,
},
Html(String),
Table {
headers: Vec<Vec<InlineNode>>,
rows: Vec<Vec<Vec<InlineNode>>>,
alignments: Vec<Alignment>,
},
}
Expand description
Represents a node in the Markdown AST
Variants§
Heading
A heading with level (1-6) and content
Paragraph(Vec<InlineNode>)
A paragraph of text
BlockQuote(Vec<Node>)
A blockquote
CodeBlock
A code block with optional language
List
A list (ordered or unordered)
ThematicBreak
A thematic break (horizontal rule)
Component
A custom component
Html(String)
Raw HTML
Table
Table
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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