Function markdown::to_html

source ·
pub fn to_html(value: &str) -> String
Expand description

Turn markdown into HTML.

Compiles markdown to HTML according to CommonMark. Use to_html_with_options() to configure how markdown is turned into HTML.

Examples

use markdown::to_html;

assert_eq!(to_html("# Hello, world!"), "<h1>Hello, world!</h1>");