Struct hoedown::Markdown [] [src]

pub struct Markdown {
    pub contents: Buffer,
    pub extensions: Extension,
    pub max_nesting: usize,
}

Markdown document

Fields

Methods

impl Markdown
[src]

Construct a markdown document from a given Reader

By default it enables no Hoedown extensions and sets the maximum block depth to parse at 16. This may be changed with the with_extensions and with_max_nesting builder methods.

Note that Buffer also implements Reader, so it can be used with this method.

Builder method to specify Hoedown extensions

Builder method to specify the maximum block depth to parse

Trait Implementations

impl Clone for Markdown
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Buffer> for Markdown
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Markdown
[src]

Performs the conversion.