Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines convenience recipes for reading and writing documents with pandoc.
Synopsis
- readPandoc :: MonadIO m => Recipe m FilePath Pandoc
- readPandocWith :: MonadIO m => ReaderOptions -> Recipe m FilePath Pandoc
- readPandocMetadata :: (MonadIO m, MonadFail m, FromJSON a) => Recipe m FilePath (a, Pandoc)
- readPandocMetadataWith :: (MonadIO m, MonadFail m, FromJSON a) => ReaderOptions -> Recipe m FilePath (a, Pandoc)
- renderPandoc :: MonadIO m => Pandoc -> Recipe m a Text
- renderPandocWith :: MonadIO m => WriterOptions -> Pandoc -> Recipe m a Text
- compilePandoc :: MonadIO m => Recipe m FilePath Text
- compilePandocWith :: MonadIO m => ReaderOptions -> WriterOptions -> Recipe m FilePath Text
Documentation
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.