pub enum MdBlockElement {
Header {
level: u8,
content: Vec<MdInlineElement>,
},
Paragraph {
content: Vec<MdInlineElement>,
},
CodeBlock {
language: Option<String>,
lines: Vec<String>,
},
ThematicBreak,
UnorderedList {
items: Vec<MdListItem>,
},
OrderedList {
starting_num: usize,
items: Vec<MdListItem>,
},
Table {
headers: Vec<MdTableCell>,
body: Vec<Vec<MdTableCell>>,
},
BlockQuote {
content: Vec<MdBlockElement>,
},
RawHtml {
content: String,
},
}
Expand description
Represents block-level markdown elements.
Variants§
Header
Paragraph
Fields
§
content: Vec<MdInlineElement>
CodeBlock
ThematicBreak
UnorderedList
Fields
§
items: Vec<MdListItem>
OrderedList
Table
BlockQuote
Fields
§
content: Vec<MdBlockElement>
RawHtml
Trait Implementations§
Source§impl Debug for MdBlockElement
impl Debug for MdBlockElement
Source§impl PartialEq for MdBlockElement
impl PartialEq for MdBlockElement
Source§impl ToHtml for MdBlockElement
impl ToHtml for MdBlockElement
impl StructuralPartialEq for MdBlockElement
Auto Trait Implementations§
impl Freeze for MdBlockElement
impl RefUnwindSafe for MdBlockElement
impl Send for MdBlockElement
impl Sync for MdBlockElement
impl Unpin for MdBlockElement
impl UnwindSafe for MdBlockElement
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