Copyright | (c) Marek Suchánek 2018 |
---|---|
License | MIT |
Maintainer | marek.suchanek@fit.cvut.cz |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Simplified API for transformation of HTML to other formats with Pandoc
and wkhtmltopdf in Haskell code. It requires wkhtmltopdf
and pandoc
to be installed locally.
Documentation
fromHTML :: ExportType -> String -> Maybe ByteString Source #
Transform given HTML as String to selected format
data ExportType Source #
Allowed export types
Instances
Bounded ExportType Source # | |
Defined in Text.FromHTML minBound :: ExportType # maxBound :: ExportType # | |
Enum ExportType Source # | |
Defined in Text.FromHTML succ :: ExportType -> ExportType # pred :: ExportType -> ExportType # toEnum :: Int -> ExportType # fromEnum :: ExportType -> Int # enumFrom :: ExportType -> [ExportType] # enumFromThen :: ExportType -> ExportType -> [ExportType] # enumFromTo :: ExportType -> ExportType -> [ExportType] # enumFromThenTo :: ExportType -> ExportType -> ExportType -> [ExportType] # | |
Eq ExportType Source # | |
Defined in Text.FromHTML (==) :: ExportType -> ExportType -> Bool # (/=) :: ExportType -> ExportType -> Bool # | |
Read ExportType Source # | |
Defined in Text.FromHTML readsPrec :: Int -> ReadS ExportType # readList :: ReadS [ExportType] # readPrec :: ReadPrec ExportType # readListPrec :: ReadPrec [ExportType] # | |
Show ExportType Source # | |
Defined in Text.FromHTML showsPrec :: Int -> ExportType -> ShowS # show :: ExportType -> String # showList :: [ExportType] -> ShowS # |