markdown
Types
struct MarkdownError
Functions
to_html
pub fn to_html(raw: string, gfm: bool = true, html: bool = false): string throws MarkdownError
[src]
pub fn to_html(raw: string, gfm: bool = true, html: bool = false): string throws MarkdownError {
return try _markdown.to_html(raw, gfm:, html:);
}
Convert Markdown to HTML.
to_html
pub fn to_html(raw: string, gfm: bool = true, html: bool = false): string throws MarkdownError
[src]
pub fn to_html(raw: string, gfm: bool = true, html: bool = false): string throws MarkdownError {
return try _markdown.to_html(raw, gfm:, html:);
}
Convert Markdown to HTML.
Convert Markdown to HTML.
Kw Args
gfm
- Enable GitHub Flavored Markdown support, default:true
html
- Enable HTML support, default:false
nv
use markdown;
let out = try! markdown.to_html("Hello **Markdown**!");
assert_eq out, "<p>Hello <strong>Markdown</strong>!</p>";