Enum pandoc_ast::Block
[−]
[src]
pub enum Block { Plain(Vec<Inline>), Para(Vec<Inline>), LineBlock(Vec<Vec<Inline>>), CodeBlock(Attr, String), RawBlock(Format, String), BlockQuote(Vec<Block>), OrderedList(ListAttributes, Vec<Vec<Block>>), BulletList(Vec<Vec<Block>>), DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>), Header(Int, Attr, Vec<Inline>), HorizontalRule, Table(Vec<Inline>, Vec<Alignment>, Vec<Double>, Vec<TableCell>, Vec<Vec<TableCell>>), Div(Attr, Vec<Block>), Null, }
Structured text like tables and lists
Variants
Plain(Vec<Inline>)
Plain text, not a paragraph
Para(Vec<Inline>)
Paragraph
LineBlock(Vec<Vec<Inline>>)
Multiple non-breaking lines
CodeBlock(Attr, String)
Code block (literal) with attributes
RawBlock(Format, String)
BlockQuote(Vec<Block>)
Block quote (list of blocks)
OrderedList(ListAttributes, Vec<Vec<Block>>)
Ordered list (attributes and a list of items, each a list of blocks)
BulletList(Vec<Vec<Block>>)
Bullet list (list of items, each a list of blocks)
DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>)
Definition list Each list item is a pair consisting of a term (a list of inlines) and one or more definitions (each a list of blocks)
Header(Int, Attr, Vec<Inline>)
Header - level (integer) and text (inlines)
HorizontalRule
Table(Vec<Inline>, Vec<Alignment>, Vec<Double>, Vec<TableCell>, Vec<Vec<TableCell>>)
Table, with caption, column alignments (required), relative column widths (0 = default), column headers (each a list of blocks), and rows (each a list of lists of blocks)
Div(Attr, Vec<Block>)
Generic block container with attributes
Null
Nothing