A library for markdown parsing and rendering.
Customize how soft line breaks (\n) are rendered and raw html
tags are parsed.
customOptions : Options
customOptions =
{ softAsHardLineBreak = True
, rawHtml = DontParse
}
view : Html Never
view =
div []
<| Markdown.withOptions customOptions model.textareaThe demo demonstrate how each option affects the output.
Turn a markdown string into a list of HTML elements, using the
Config.defaultOptionsandConfig.defaultElements.