jxxcarlson/elm-markdown/7.0.0

NOTE: the latest version is 10.1.0

Markdown.Elm

Render Markdown text to Html using one of the options defined in the Option module.

toHtml : Option -> String -> Html MarkdownMsg

Parse the input and render it to Html, e.g.,

toHtml ExtendedMath "Pythagoras said: $a^2 + b^2 c^2$."

toHtmlWithTOC : Option -> String -> Html MarkdownMsg

Like toHtml, but constructs a table of contents.

-> String
-> { title : Html MarkdownMsg
, toc : Html MarkdownMsg
, document : Html MarkdownMsg
}

Like toHtmlWithTOC, but constructs returns a record, one field of which is the rendered document, anther of which is the rendered table of contents.