cheapskate-0.1.0.5: Experimental markdown processor.

Safe HaskellNone
LanguageHaskell2010

Cheapskate.Parse

Synopsis

Documentation

markdown :: Options -> Text -> Doc Source #

Parses the input as a markdown document. Note that Doc is an instance of ToMarkup, so the document can be converted to Html using toHtml. A simple Text to Html filter would be

markdownToHtml :: Text -> Html
markdownToHtml = toHtml . markdown def