pablohirafuji / elm-markdown / Markdown

A pure Elm package for markdown parsing and rendering.

Parsing and rendering Markdown

toHtml : Maybe Config.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.