Safe Haskell | None |
---|
Module exporting convenient pandoc bindings
- readPandoc :: Item String -> Item Pandoc
- readPandocWith :: ParserState -> Item String -> Item Pandoc
- writePandoc :: Item Pandoc -> Item String
- writePandocWith :: WriterOptions -> Item Pandoc -> Item String
- renderPandoc :: Item String -> Item String
- renderPandocWith :: ParserState -> WriterOptions -> Item String -> Item String
- pandocCompiler :: Compiler (Item String)
- pandocCompilerWith :: ParserState -> WriterOptions -> Compiler (Item String)
- pandocCompilerWithTransform :: ParserState -> WriterOptions -> (Pandoc -> Pandoc) -> Compiler (Item String)
- defaultHakyllParserState :: ParserState
- defaultHakyllWriterOptions :: WriterOptions
The basic building blocks
Read a string using pandoc, with the default options
:: ParserState | Parser options |
-> Item String | String to read |
-> Item Pandoc | Resulting document |
Read a string using pandoc, with the supplied options
Write a document (as HTML) using pandoc, with the default options
:: WriterOptions | Writer options for pandoc |
-> Item Pandoc | Document to write |
-> Item String | Resulting HTML |
Write a document (as HTML) using pandoc, with the supplied options
renderPandocWith :: ParserState -> WriterOptions -> Item String -> Item StringSource
Render the resource using pandoc
Derived compilers
pandocCompiler :: Compiler (Item String)Source
Read a page render using pandoc
pandocCompilerWith :: ParserState -> WriterOptions -> Compiler (Item String)Source
A version of pandocCompiler
which allows you to specify your own pandoc
options
pandocCompilerWithTransform :: ParserState -> WriterOptions -> (Pandoc -> Pandoc) -> Compiler (Item String)Source
An extension of pandocCompilerWith
which allows you to specify a custom
pandoc transformation for the content
Default options
defaultHakyllParserState :: ParserStateSource
The default reader options for pandoc parsing in hakyll
defaultHakyllWriterOptions :: WriterOptionsSource
The default writer options for pandoc rendering in hakyll