pandoc

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley@edu>
Safe HaskellSafe-Infered

Main

Description

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

Synopsis

Documentation

wrapWords :: Int -> 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 SlidySlideousS5

optSelfContained :: Bool

Make HTML accessible offline

optSmart :: Bool

Use smart typography

optOldDashes :: Bool

Parse dashes like pandoc <=1.8.2.1

optHtml5 :: Bool

Produce HTML5 in HTML

optHighlight :: Bool

Highlight source code

optHighlightStyle :: Style

Style to use for highlighted code

optChapters :: Bool

Use chapter for top-level sects

optHTMLMathMethod :: HTMLMathMethod

Method to print HTML math

optReferenceODT :: Maybe FilePath

Path of reference.odt

optReferenceDocx :: Maybe FilePath

Path of reference.docx

optEPUBStylesheet :: Maybe String

EPUB stylesheet

optEPUBMetadata :: String

EPUB metadata

optEPUBFonts :: [FilePath]

EPUB fonts to embed

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
 
optAbbrevsFile :: Maybe FilePath
 
optListings :: Bool

Use listings package for code blocks

optLaTeXEngine :: String

Program to use for latex -> pdf

optSlideLevel :: Maybe Int

Header level that creates slides

optSetextHeaders :: Bool

Use atx headers for markdown level 1-2

optAscii :: Bool

Use ascii characters only in html

optTeXLigatures :: Bool

Use TeX ligatures for quotes/dashes

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.