| Copyright | (c) Marek Suchánek 2018 |
|---|---|
| License | MIT |
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Text.FromHTML
Description
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 | |
| Enum ExportType Source # | |
Defined in Text.FromHTML Methods 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 | |
| Read ExportType Source # | |
Defined in Text.FromHTML Methods readsPrec :: Int -> ReadS ExportType # readList :: ReadS [ExportType] # readPrec :: ReadPrec ExportType # readListPrec :: ReadPrec [ExportType] # | |
| Show ExportType Source # | |
Defined in Text.FromHTML Methods showsPrec :: Int -> ExportType -> ShowS # show :: ExportType -> String # showList :: [ExportType] -> ShowS # | |