jxxcarlson/elm-markdown/2.2.4

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 msg

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

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

toHtmlWithTOC : Option -> String -> Html msg

Like toHtml, but constructs a table of contents.

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

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