jxxcarlson / elm-markdown / 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 : Basics.Int -> String -> MarkdownData

render : String -> MarkdownData -> List (Html Markdown.Render.MarkdownMsg)

update : Basics.Int -> String -> MarkdownData -> MarkdownData