clckwrks-0.24.0.15: A secure, reliable content management system (CMS) and blogging platform

Safe HaskellNone
LanguageHaskell2010

Clckwrks.Markup.Markdown

Synopsis

Documentation

markdown Source #

Arguments

:: MonadIO m 
=> Maybe [String]

override command-line flags

-> Trust

do we trust the author

-> Text

markdown text

-> m (Either Text Text)

Left error, Right html

run the text through the markdown executable. If successful, and the input is marked Untrusted, run the output through xss-sanitize / sanitizeBalance to prevent injection attacks.