to_html

Function 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("# Hi Mercury!"), "<h1>Hi Mercury!</h1>");