Orasund / elm-ui-widgets

Collection of reusable views for elm-ui.
https://orasund.github.io/elm-ui-widgets/
BSD 3-Clause "New" or "Revised" License
85 stars 11 forks source link

Add TextBlock Widget #17

Open Orasund opened 4 years ago

Orasund commented 4 years ago

The TextBlock Widget would add Markdown support. Its widget type should be an alias of pablohirafuji/elm-markdown's Block Type

type Block b i
    = BlankLine String
    | ThematicBreak
    | Heading String Int (List (Inline i))
    | CodeBlock CodeBlock String
    | Paragraph String (List (Inline i))
    | BlockQuote (List (Block b i))
    | List ListBlock (List (List (Block b i)))
    | PlainInlines (List (Inline i))
    | Custom b (List (Block b i))

(Checkout pablohirafuji/elm-markdown for more information)

The actual parsing would be done by pablohirafuji/elm-markdown.