pub enum BlockKind {
Paragraph(Vec<Inline>),
Heading {
level: HeadingLevel,
id: HeadingId,
content: Vec<Inline>,
},
Quote(Vec<Block>),
List {
kind: ListKind,
items: Vec<ListItem>,
},
Code {
kind: CodeBlockKind,
text: String,
},
Table(Table),
Rule,
Literal(String),
}Expand description
Block-level Markdown structure.
Variants§
Paragraph(Vec<Inline>)
A paragraph; soft and hard breaks are preserved in its inlines.
Heading
A heading, whose anchor is also in the document’s heading index.
Fields
§
level: HeadingLevelCommonMark heading level.
Quote(Vec<Block>)
A block quotation, potentially containing lists or other quotes.
List
An ordered or unordered list.
Fields
Code
A fenced or indented code block.
Fields
§
kind: CodeBlockKindWhether the block was indented or fenced, including fence info.
Table(Table)
A table.
Rule
A thematic break.
Literal(String)
Raw HTML or an unsupported block, rendered literally rather than executed.
Trait Implementations§
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Forget for BlockKind
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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