sundown-0.4.2: Bindings to the sundown markdown library

Safe HaskellSafe-Infered



Bindings to the github fork of the sundown library - previously known as upskirt:

Example usage:

 import Text.Sundown
 import Text.Sundown.Renderers.Html
 import qualified Data.ByteString as BS
 import qualified Data.ByteString.UTF8 as UTF8
 import System (getArgs)
 import Control.Monad (liftM)

 main :: IO ()
 main = do
   input <- liftM (!! 0) getArgs >>= BS.readFile
   putStrLn $ UTF8.toString $ renderHtml input allExtensions noHtmlModes Nothing