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

Block quotation, e.g. bq. Some quote.

Fields of BlockQuotation

Code block, e.g. bc. print("Hello World").

Fields of CodeBlock

Comment block.

Heading, e.g. h3. Some text.

Fields of Heading

In this block the Textile formatting is disabled.

Paragraph, e.g. p. Some text or Some text.

Fields of Paragraph

Pre-formatted text, e.g. pre. *Some text*

Fields of Pre

Trait Implementations

impl Debug for Block
[src]

Formats the value using the given formatter.

impl PartialEq for Block
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.