pub struct RenderResult {
    pub content: String,
    pub has_collapsible_table: bool,
    pub metadata: Option<Yaml>,
    pub fenced_code_contents: HashMap<usize, String>,
}

Fields

content: Stringhas_collapsible_table: bool

This flag tells you if the document has a collapsible table.

metadata: Option<Yaml>fenced_code_contents: HashMap<usize, String>

Some fenced codes have a copy button with them. Each button has an index of the fenced code. This hashmap maps the index and the content of the fenced code. Use this data when writing javascript for the copy buttons.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.