evancz/elm-markdown/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Markdown

A library for markdown parsing. This is just an Elm API built on top of the marked project which focuses on speed.

Parsing Markdown

toElement : String -> Element

Turn a markdown string into an HTML element.

intro : Element    
intro =
    Markdown.toElement """


# Time Travel Made Easy


Elm Reactor grew out of my internship working on Elm at Prezi this summer...


"""
toHtml : String -> Html

Turn a markdown string into an HTML element.

bodyParagraph : Html
bodyParagraph =
    Markdown.toHtml """


# Changing History


In addition to time travel, Elm Reactor lets you change history...


"""