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

Safe HaskellSafe
LanguageHaskell2010

Clckwrks.Markup.HsColour

Synopsis

Documentation

hscolour Source #

Arguments

:: MonadIO m 
=> Maybe [String]

override command-line flags

-> Text

markdown text

-> m (Either Text Text)

Left error, Right html

run the text through the markdown executable and, if successful, run the output through xss-sanitize / sanitizeBalance to prevent injection attacks.