pandoc

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley@edu>

Main

Description

Parses command-line options and calls the appropriate readers and writers.

Synopsis

Documentation

wrapWords :: Int -> [String] -> String

Converts a list of strings into a single string with the items printed as comma separated words in lines with a maximum line length.

data Opt

Data structure for command line options.

Constructors

Opt 

Fields

optTabStop :: Int

Number of spaces per tab

optPreserveTabs :: Bool

Preserve tabs instead of converting to spaces

optStandalone :: Bool

Include header, footer

optReader :: String

Reader format

optWriter :: String

Writer format

optParseRaw :: Bool

Parse unconvertable HTML and TeX

optTableOfContents :: Bool

Include table of contents

optTransforms :: [Pandoc -> Pandoc]

Doc transforms to apply

optTemplate :: Maybe FilePath

Custom template

optVariables :: [(String, String)]

Template variables to set

optOutputFile :: String

Name of output file

optNumberSections :: Bool

Number sections in LaTeX

optSectionDivs :: Bool

Put sections in div tags in HTML

optIncremental :: Bool

Use incremental lists in Slidy/S5

optOffline :: Bool

Make slideshow accessible offline

optXeTeX :: Bool

Format latex for xetex

optSmart :: Bool

Use smart typography

optHtml5 :: Bool

Produce HTML5 in HTML

optChapters :: Bool

Use chapter for top-level sects

optHTMLMathMethod :: HTMLMathMethod

Method to print HTML math

optReferenceODT :: Maybe FilePath

Path of reference.odt

optEPUBStylesheet :: Maybe String

EPUB stylesheet

optEPUBMetadata :: String

EPUB metadata

optDumpArgs :: Bool

Output command-line arguments

optIgnoreArgs :: Bool

Ignore command-line arguments

optStrict :: Bool

Use strict markdown syntax

optReferenceLinks :: Bool

Use reference links in writing markdown, rst

optWrapText :: Bool

Wrap text

optColumns :: Int

Line length in characters

optPlugins :: [Pandoc -> IO Pandoc]

Plugins to apply

optEmailObfuscation :: ObfuscationMethod
 
optIdentifierPrefix :: String
 
optIndentedCodeClasses :: [String]

Default classes for indented code blocks

optDataDir :: Maybe FilePath
 
optCiteMethod :: CiteMethod

Method to output cites

optBibliography :: [String]
 
optCslFile :: FilePath
 
optListings :: Bool

Use listings package for code blocks

optAscii :: Bool

Avoid using nonascii characters

defaultOpts :: Opt

Defaults for command-line options.

options :: [OptDescr (Opt -> IO Opt)]

A list of functions, each transforming the options data structure in response to a command-line option.