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

Safe HaskellNone

Clckwrks.Markup.Markdown

Synopsis

Documentation

markdownSource

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.