achille-0.0.0: A library for building static site generators
Safe HaskellNone
LanguageHaskell2010

Achille.Recipe.Pandoc

Description

Defines convenience recipes for reading and writing documents with pandoc.

Synopsis

Documentation

readPandoc :: MonadIO m => Recipe m FilePath Pandoc Source #

Recipe for loading a pandoc document

readPandocWith :: MonadIO m => ReaderOptions -> Recipe m FilePath Pandoc Source #

Recipe for loading a pandoc document using a given reader config

readPandocMetadata :: (MonadIO m, MonadFail m, FromJSON a) => Recipe m FilePath (a, Pandoc) Source #

Recipe for loading a pandoc document and a frontmatter header.

readPandocMetadataWith :: (MonadIO m, MonadFail m, FromJSON a) => ReaderOptions -> Recipe m FilePath (a, Pandoc) Source #

Recipe for loading a pandoc document using a given reader config

renderPandoc :: MonadIO m => Pandoc -> Recipe m a Text Source #

Recipe to convert a Pandoc document to HTML.

renderPandocWith :: MonadIO m => WriterOptions -> Pandoc -> Recipe m a Text Source #

Recipe to convert a Pandoc document to HTML using specified writer options.

compilePandoc :: MonadIO m => Recipe m FilePath Text Source #

Recipe to load and convert a Pandoc document to HTML.

compilePandocWith :: MonadIO m => ReaderOptions -> WriterOptions -> Recipe m FilePath Text Source #

Recipe to load and convert a Pandoc document to HTML.