A pure Elm package for markdown parsing and rendering.
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.