pub enum Container<'s> {
Show 31 variants
Blockquote,
List {
kind: ListKind,
tight: bool,
},
ListItem,
TaskListItem {
checked: bool,
},
DescriptionList,
DescriptionDetails,
Footnote {
tag: &'s str,
number: usize,
},
Table,
TableRow {
head: bool,
},
Section {
id: Cow<'s, str>,
},
Div {
class: Option<&'s str>,
},
Paragraph,
Heading {
level: u16,
has_section: bool,
id: Cow<'s, str>,
},
TableCell {
alignment: Alignment,
head: bool,
},
Caption,
DescriptionTerm,
RawBlock {
format: &'s str,
},
CodeBlock {
lang: Option<&'s str>,
},
Span,
Link(Cow<'s, str>, LinkType),
Image(Cow<'s, str>, SpanLinkType),
Verbatim,
Math {
display: bool,
},
RawInline {
format: &'s str,
},
Subscript,
Superscript,
Insert,
Delete,
Strong,
Emphasis,
Mark,
}Expand description
A container that may contain other elements.
There are three types of containers:
- inline, may only contain inline elements,
- block leaf, may only contain inline elements,
- block container, may contain any block-level elements.
Variants§
Blockquote
A blockquote element.
List
A list.
ListItem
An item of a list
TaskListItem
An item of a task list, either checked or unchecked.
DescriptionList
A description list element.
DescriptionDetails
Details describing a term within a description list.
Footnote
A footnote definition.
Table
A table element.
TableRow
A row element of a table.
Section
A section belonging to a top level heading.
Div
A block-level divider element.
Paragraph
A paragraph.
Heading
A heading.
TableCell
A cell element of row within a table.
Caption
A caption within a table.
DescriptionTerm
A term within a description list.
RawBlock
A block with raw markup for a specific output format.
CodeBlock
A block with code in a specific language.
Span
An inline divider element.
Link(Cow<'s, str>, LinkType)
An inline link with a destination URL.
Image(Cow<'s, str>, SpanLinkType)
An inline image with a source URL. Inner Str objects compose the alternative text.
Verbatim
An inline verbatim string.
Math
An inline or display math element.
RawInline
Inline raw markup for a specific output format.
Subscript
A subscripted element.
Superscript
A superscripted element.
Insert
An inserted inline element.
Delete
A deleted inline element.
Strong
An inline element emphasized with a bold typeface.
Emphasis
An emphasized inline element.
Mark
A highlighted inline element.