Read a string using pandoc, with the default options
Modulehakyll-4.17.0.0Haskell2010
Hakyll.Web.Pandoc
Module exporting convenient pandoc bindings
- 16 values
- Packagehakyll-4.17.0.0
- Exports16
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePandoc.hs
The basic building blocks
9 declarationsreadPandocWith Read a string using pandoc, with the supplied options
Write a document (as HTML) using pandoc, with the default options
writePandocWith :: WriterOptionsWriter options for pandoc
-> Item PandocDocument to write
-> Item StringResulting HTML
Write a document (as HTML) using pandoc, with the supplied options
Render the resource using pandoc
Render the resource using pandoc
An extension of renderPandocWith, which allows you to specify a custom
Pandoc transformation on the input Item.
Useful if you want to do your own transformations before running
custom Pandoc transformations, e.g. using a funcField to transform raw content.
Similar to renderPandocWithTransform, but the Pandoc transformation is monadic. This is useful when you want the pandoc transformation to use the Compiler information such as routes, metadata, etc. along with your own transformations beforehand.
Like renderPandocWithTransformM, but work on an Item Pandoc instead
of just a Pandoc. This allows for more seamless composition of functions
that require the extra information that an Item provides, like
bibliographic transformations with
processPandocBiblio.
Derived compilers
5 declarationsRead a page render using pandoc
A version of pandocCompiler which allows you to specify your own pandoc options
An extension of pandocCompilerWith which allows you to specify a custom pandoc transformation for the content
Similar to pandocCompilerWithTransform, but the transformation function is monadic. This is useful when you want the pandoc transformation to use the Compiler information such as routes, metadata, etc
Like pandocCompilerWithTransformM, but work on an Item Pandoc instead of just a Pandoc. This allows for more seamless composition of functions that require the extra information that an Item provides, like bibliographic transformations with processPandocBiblio.
Default options
2 declarationsThe default reader options for pandoc parsing in hakyll
The default writer options for pandoc rendering in hakyll