hakyll-3.3.0.1: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Web.Pandoc

Contents

Description

Module exporting pandoc bindings

Synopsis

The basic building blocks

readPandocSource

Arguments

:: FileType

Determines how parsing happens

-> Maybe (Identifier a)

Optional, for better error messages

-> String

String to read

-> Pandoc

Resulting document

Read a string using pandoc, with the default options

readPandocWithSource

Arguments

:: ParserState

Parser options

-> FileType

Determines parsing method

-> Maybe (Identifier a)

Optional, for better error messages

-> 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

pageReadPandocWithA :: Compiler (ParserState, Page String) (Page Pandoc)Source

Read the resource using pandoc. This is a (rarely needed) variant, which comes in very useful when the parser state is the result of some arrow.

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