pablohirafuji/elm-markdown/2.0.3

NOTE: this package is not compatible with Elm 0.19.1

Markdown

A pure Elm package for markdown parsing and rendering.

Parsing and rendering Markdown

toHtml : Maybe Options -> String -> List (Html msg)

Turn a markdown string into a list of HTML elements.

view : Html msg
view =
    div []
        <| toHtml Nothing "# Title with *emphasis*"

Note: If Maybe Options is Nothing, Config.defaultOptions will be used.