Copyright | Copyright (C) 2006-2018 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This helper module exports all writers functions.
Synopsis
- data Writer m
- = TextWriter (WriterOptions -> Pandoc -> m Text)
- | ByteStringWriter (WriterOptions -> Pandoc -> m ByteString)
- writers :: PandocMonad m => [(String, Writer m)]
- writeAsciiDoc :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeBeamer :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeCommonMark :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeConTeXt :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeCustom :: FilePath -> WriterOptions -> Pandoc -> PandocIO Text
- writeDZSlides :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeDocbook4 :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeDocbook5 :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeDocx :: PandocMonad m => WriterOptions -> Pandoc -> m ByteString
- writeDokuWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeEPUB2 :: PandocMonad m => WriterOptions -> Pandoc -> m ByteString
- writeEPUB3 :: PandocMonad m => WriterOptions -> Pandoc -> m ByteString
- writeFB2 :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeHaddock :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeHtml4 :: PandocMonad m => WriterOptions -> Pandoc -> m Html
- writeHtml4String :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeHtml5 :: PandocMonad m => WriterOptions -> Pandoc -> m Html
- writeHtml5String :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeICML :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeJATS :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeJSON :: WriterOptions -> Pandoc -> Text
- writeLaTeX :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeMan :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeMarkdown :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeMediaWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeMs :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeMuse :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeODT :: PandocMonad m => WriterOptions -> Pandoc -> m ByteString
- writeOPML :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeOpenDocument :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeOrg :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writePlain :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writePowerpoint :: PandocMonad m => WriterOptions -> Pandoc -> m ByteString
- writeRST :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeRTF :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeRevealJs :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeS5 :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeSlideous :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeSlidy :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeTEI :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeTexinfo :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeTextile :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- writeZimWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text
- getWriter :: PandocMonad m => String -> Either String (Writer m, Extensions)
Writers: converting from Pandoc format
TextWriter (WriterOptions -> Pandoc -> m Text) | |
ByteStringWriter (WriterOptions -> Pandoc -> m ByteString) |
writeAsciiDoc :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to AsciiDoc.
writeBeamer :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to LaTeX Beamer.
writeCommonMark :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to CommonMark.
writeConTeXt :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to ConTeXt.
writeCustom :: FilePath -> WriterOptions -> Pandoc -> PandocIO Text Source #
Convert Pandoc to custom markup.
writeDZSlides :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to DZSlides HTML slide show.
writeDocbook4 :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
writeDocbook5 :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
:: PandocMonad m | |
=> WriterOptions | Writer options |
-> Pandoc | Document to convert |
-> m ByteString |
writeDokuWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to DokuWiki.
:: PandocMonad m | |
=> WriterOptions | Writer options |
-> Pandoc | Document to convert |
-> m ByteString |
Produce an EPUB2 file from a Pandoc document.
:: PandocMonad m | |
=> WriterOptions | Writer options |
-> Pandoc | Document to convert |
-> m ByteString |
Produce an EPUB3 file from a Pandoc document.
:: PandocMonad m | |
=> WriterOptions | conversion options |
-> Pandoc | document to convert |
-> m Text | FictionBook2 document (not encoded yet) |
Produce an FB2 document from a Pandoc
document.
writeHaddock :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Haddock.
writeHtml4 :: PandocMonad m => WriterOptions -> Pandoc -> m Html Source #
Convert Pandoc document to Html 4 structure.
writeHtml4String :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to Html 4 string.
writeHtml5 :: PandocMonad m => WriterOptions -> Pandoc -> m Html Source #
Convert Pandoc document to Html 5 structure.
writeHtml5String :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to Html 5 string.
writeICML :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to string in ICML format.
writeJATS :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
writeLaTeX :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to LaTeX.
writeMan :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Man.
writeMarkdown :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Markdown.
writeMediaWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to MediaWiki.
writeMs :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Ms.
writeMuse :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Muse.
writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Prettyprint Pandoc document.
:: PandocMonad m | |
=> WriterOptions | Writer options |
-> Pandoc | Document to convert |
-> m ByteString |
Produce an ODT file from a Pandoc document.
writeOPML :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to string in OPML format.
writeOpenDocument :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to string in OpenDocument format.
writeOrg :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Org.
writePlain :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to plain text (like markdown, but without links, pictures, or inline formatting).
:: PandocMonad m | |
=> WriterOptions | Writer options |
-> Pandoc | Document to convert |
-> m ByteString |
writeRST :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to RST.
writeRTF :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to a string in rich text format.
writeRevealJs :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to Reveal JS HTML slide show.
writeS5 :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to S5 HTML slide show.
writeSlideous :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to Slideous HTML slide show.
writeSlidy :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to Slidy HTML slide show.
writeTEI :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc document to string in Docbook format.
writeTexinfo :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Texinfo.
writeTextile :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to Textile.
writeZimWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Convert Pandoc to ZimWiki.
getWriter :: PandocMonad m => String -> Either String (Writer m, Extensions) Source #
Retrieve writer, extensions based on formatSpec (format+extensions).