Copyright | Copyright (C) 2012-2024 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text.Pandoc.Options
Description
Data structures and functions for representing parser and writer options.
Synopsis
- module Text.Pandoc.Extensions
- data ReaderOptions = ReaderOptions {}
- data HTMLMathMethod
- data CiteMethod
- data ObfuscationMethod
- data HTMLSlideVariant
- data EPUBVersion
- data WrapOption
- data TopLevelDivision
- data WriterOptions = WriterOptions {
- writerTemplate :: Maybe (Template Text)
- writerVariables :: Context Text
- writerTabStop :: Int
- writerTableOfContents :: Bool
- writerIncremental :: Bool
- writerHTMLMathMethod :: HTMLMathMethod
- writerNumberSections :: Bool
- writerNumberOffset :: [Int]
- writerSectionDivs :: Bool
- writerExtensions :: Extensions
- writerReferenceLinks :: Bool
- writerDpi :: Int
- writerWrapText :: WrapOption
- writerColumns :: Int
- writerEmailObfuscation :: ObfuscationMethod
- writerIdentifierPrefix :: Text
- writerCiteMethod :: CiteMethod
- writerHtmlQTags :: Bool
- writerSlideLevel :: Maybe Int
- writerTopLevelDivision :: TopLevelDivision
- writerListings :: Bool
- writerHighlightStyle :: Maybe Style
- writerSetextHeaders :: Bool
- writerListTables :: Bool
- writerEpubSubdirectory :: Text
- writerEpubMetadata :: Maybe Text
- writerEpubFonts :: [FilePath]
- writerEpubTitlePage :: Bool
- writerSplitLevel :: Int
- writerChunkTemplate :: PathTemplate
- writerTOCDepth :: Int
- writerReferenceDoc :: Maybe FilePath
- writerReferenceLocation :: ReferenceLocation
- writerSyntaxMap :: SyntaxMap
- writerPreferAscii :: Bool
- data TrackChanges
- data ReferenceLocation
- def :: Default a => a
- isEnabled :: HasSyntaxExtensions a => Extension -> a -> Bool
- defaultMathJaxURL :: Text
- defaultKaTeXURL :: Text
Documentation
module Text.Pandoc.Extensions
data ReaderOptions Source #
Constructors
ReaderOptions | |
Fields
|
Instances
data HTMLMathMethod Source #
Instances
data CiteMethod Source #
Instances
data ObfuscationMethod Source #
Methods for obfuscating email addresses in HTML.
Constructors
NoObfuscation | |
ReferenceObfuscation | |
JavascriptObfuscation |
Instances
data HTMLSlideVariant Source #
Varieties of HTML slide shows.
Constructors
S5Slides | |
SlidySlides | |
SlideousSlides | |
DZSlides | |
RevealJsSlides | |
NoSlides |
Instances
data EPUBVersion Source #
Instances
Data EPUBVersion Source # | |
Defined in Text.Pandoc.Options Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EPUBVersion -> c EPUBVersion # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EPUBVersion # toConstr :: EPUBVersion -> Constr # dataTypeOf :: EPUBVersion -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EPUBVersion) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EPUBVersion) # gmapT :: (forall b. Data b => b -> b) -> EPUBVersion -> EPUBVersion # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EPUBVersion -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EPUBVersion -> r # gmapQ :: (forall d. Data d => d -> u) -> EPUBVersion -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> EPUBVersion -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> EPUBVersion -> m EPUBVersion # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EPUBVersion -> m EPUBVersion # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EPUBVersion -> m EPUBVersion # | |
Generic EPUBVersion Source # | |
Defined in Text.Pandoc.Options Associated Types type Rep EPUBVersion :: Type -> Type # | |
Read EPUBVersion Source # | |
Defined in Text.Pandoc.Options Methods readsPrec :: Int -> ReadS EPUBVersion # readList :: ReadS [EPUBVersion] # readPrec :: ReadPrec EPUBVersion # readListPrec :: ReadPrec [EPUBVersion] # | |
Show EPUBVersion Source # | |
Defined in Text.Pandoc.Options Methods showsPrec :: Int -> EPUBVersion -> ShowS # show :: EPUBVersion -> String # showList :: [EPUBVersion] -> ShowS # | |
Eq EPUBVersion Source # | |
Defined in Text.Pandoc.Options | |
type Rep EPUBVersion Source # | |
data WrapOption Source #
Options for wrapping text in the output.
Constructors
WrapAuto | Automatically wrap to width |
WrapNone | No non-semantic newlines |
WrapPreserve | Preserve wrapping of input source |
Instances
data TopLevelDivision Source #
Options defining the type of top-level headers.
Constructors
TopLevelPart | Top-level headers become parts |
TopLevelChapter | Top-level headers become chapters |
TopLevelSection | Top-level headers become sections |
TopLevelDefault | Top-level type is determined via heuristics |
Instances
data WriterOptions Source #
Options for writers
Constructors
WriterOptions | |
Fields
|
Instances
data TrackChanges Source #
Options for accepting or rejecting MS Word track-changes.
Constructors
AcceptChanges | |
RejectChanges | |
AllChanges |
Instances
data ReferenceLocation Source #
Locations for footnotes and references in markdown output
Constructors
EndOfBlock | End of block |
EndOfSection | prior to next section header (or end of document) |
EndOfDocument | at end of document |