Enum maud_pulldown_cmark::Markdown [] [src]

pub enum Markdown<'a> {
    FromString(&'a str),
}

The adapter that allows rendering markdown inside a maud macro.

Examples

let markdown = "
 1. A list
 2. With some
 3. Values
";

let mut buffer = String::new();

html!(buffer, {
  div {
    $(Markdown::FromString(markdown))
  }
}).unwrap();

println!("{}", buffer);

Variants

FromString

To allow rendering from a string.

Trait Implementations

impl<'a> Render for Markdown<'a>

fn render(&self, w: &mut Write) -> Result