Function textile::render_with [] [src]

pub fn render_with<S: IntoString>(text: S, options: RenderOptions) -> String

Renders Textile string into HTML string with specified options. Accepts &str, String or Path data type.

Example

let html = textile::render_with("h2. *Heading of level 2*", textile::RenderOptions::default());
assert_eq!(html, "<h2><strong>Heading of level 2</strong></h2>".to_string());