pandoc-2.1.1: Conversion between markup formats

CopyrightCopyright (C) 2006-2018 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.Pandoc.Writers

Contents

Description

This helper module exports all writers functions.

Synopsis

Writers: converting from Pandoc format

writers :: PandocMonad m => [(String, Writer m)] Source #

Association list of formats and writers.

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.

writeDocx Source #

Arguments

:: PandocMonad m 
=> WriterOptions

Writer options

-> Pandoc

Document to convert

-> m ByteString 

writeDokuWiki :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #

Convert Pandoc to DokuWiki.

writeEPUB2 Source #

Arguments

:: PandocMonad m 
=> WriterOptions

Writer options

-> Pandoc

Document to convert

-> m ByteString 

Produce an EPUB2 file from a Pandoc document.

writeEPUB3 Source #

Arguments

:: PandocMonad m 
=> WriterOptions

Writer options

-> Pandoc

Document to convert

-> m ByteString 

Produce an EPUB3 file from a Pandoc document.

writeFB2 Source #

Arguments

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

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.

writeODT Source #

Arguments

:: 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).

writePowerpoint Source #

Arguments

:: 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).