Enum textile::parser::Block
[−]
[src]
pub enum Block { BlockQuotation { attributes: Attributes, cite: String, elements: BlockElements, }, CodeBlock { attributes: Attributes, code: String, }, Comment(Vec<String>), Heading { attributes: Attributes, elements: InlineElements, level: u8, }, NoTextileBlock(Vec<String>), Paragraph { attributes: Attributes, elements: InlineElements, starts_with_p: bool, }, Pre { attributes: Attributes, lines: Vec<String>, }, }
Block element, e.g. heading, paragraph or code block.
Variants
BlockQuotation
Block quotation, e.g. bq. Some quote
.
Fields of BlockQuotation
attributes: Attributes | |
cite: String | |
elements: BlockElements |
CodeBlock
Code block, e.g. bc. print("Hello World")
.
Fields of CodeBlock
attributes: Attributes | |
code: String |
Comment(Vec<String>)
Comment block.
Heading
Heading, e.g. h3. Some text
.
Fields of Heading
attributes: Attributes | |
elements: InlineElements | |
level: u8 |
NoTextileBlock(Vec<String>)
In this block the Textile formatting is disabled.
Paragraph
Paragraph, e.g. p. Some text
or Some text
.
Fields of Paragraph
attributes: Attributes | |
elements: InlineElements | |
starts_with_p: bool |
Pre
Pre-formatted text, e.g. pre. *Some text*
Fields of Pre
attributes: Attributes | |
lines: Vec<String> |