upskirt-0.0.2: Binding to upskirt

Text.Upskirt

Description

Bindings to the github fork of the upskirt library: https://github.com/tanoku/upskirt

Example usage:

 import Text.Upskirt
 import Text.Upskirt.Renderers.Xhtml
 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 noXhtmlModes

Documentation