module watt.markdown

Parse Markdown into HTML.

watt.markdown attempts to be a fully compliant CommonMark parser. It takes Markdown input, and returns a string of HTML.

Code Map

//! Parse Markdown into HTML.
module watt.markdown;


//! Given a markdown string, return a string of HTML.
fn filterMarkdown(src: string) string { }
//! Given a markdown string, put a string of HTML in a given Sink.
fn filterMarkdown(sink: scope (Sink), src: string) { }
fn filterMarkdown(src: string) string

Given a markdown string, return a string of HTML.

Example

filterMarkdown("**hello** `world`");  // Returns "<p><strong>hello</strong> <code>world</code></p>"
fn filterMarkdown(sink: scope (Sink), src: string)

Given a markdown string, put a string of HTML in a given Sink.