hakyll-3.0.1.4: A simple static site generator library.

Hakyll.Web.Pandoc

Contents

Description

Module exporting pandoc bindings

Synopsis

The basic building blocks

readPandocSource

Arguments

:: FileType

File type, determines how parsing happens

-> String

String to read

-> Pandoc

Resulting document

Read a string using pandoc, with the default options

readPandocWithSource

Arguments

:: ParserState

Parser options

-> FileType

File type, determines how parsing happens

-> String

String to read

-> Pandoc

Resulting document

Read a string using pandoc, with the supplied options

writePandocSource

Arguments

:: Pandoc

Document to write

-> String

Resulting HTML

Write a document (as HTML) using pandoc, with the default options

writePandocWithSource

Arguments

:: WriterOptions

Writer options for pandoc

-> Pandoc

Document to write

-> String

Resulting HTML

Write a document (as HTML) using pandoc, with the supplied options

Functions working on pages/compilers

pageReadPandoc :: Compiler (Page String) (Page Pandoc)Source

Read the resource using pandoc

pageReadPandocWith :: ParserState -> Compiler (Page String) (Page Pandoc)Source

Read the resource using pandoc

pageRenderPandoc :: Compiler (Page String) (Page String)Source

Render the resource using pandoc

pageRenderPandocWith :: ParserState -> WriterOptions -> Compiler (Page String) (Page String)Source

Render the resource using pandoc

Default options

defaultHakyllParserState :: ParserStateSource

The default reader options for pandoc parsing in hakyll

defaultHakyllWriterOptions :: WriterOptionsSource

The default writer options for pandoc rendering in hakyll