jxxcarlson/elm-markdown/9.6.0

NOTE: the latest version is 10.1.0

Markdown.Data

Markdown.Data exposes types and functions which are used by UMUI, a universal markup interface. With UMUI, one can easily switch between markup languages, e.g. the Math+Markdown in jxxcarlson/elm-markdown and MiniLaTeX, the subset of LaTeX defined in jxxcarlson/meenylatex.

For an example of how UMUI is used, see the Github repo. Here is a demo app

To use UMUI, one must expose one data type, here given by MarkdownData, and three functions which operate on it: init, update, and render.

type alias MarkdownData =
{ source : String }
init : Int -> String -> MarkdownData
render : String -> MarkdownData -> List (Html MarkdownMsg)
update : Int -> String -> MarkdownData -> MarkdownData