Copyright | Copyright (C) 2006-2023 John MacFarlane |
---|---|
License | BSD3 |
Maintainer | John MacFarlane <[email protected]> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Text.Pandoc.Definition
Description
Definition of Pandoc
data structure for format-neutral representation
of documents.
Synopsis
- data Pandoc = Pandoc Meta [Block]
- newtype Meta = Meta {}
- data MetaValue
- = MetaMap (Map Text MetaValue)
- | MetaList [MetaValue]
- | MetaBool Bool
- | MetaString Text
- | MetaInlines [Inline]
- | MetaBlocks [Block]
- nullMeta :: Meta
- isNullMeta :: Meta -> Bool
- lookupMeta :: Text -> Meta -> Maybe MetaValue
- docTitle :: Meta -> [Inline]
- docAuthors :: Meta -> [[Inline]]
- docDate :: Meta -> [Inline]
- data Block
- = Plain [Inline]
- | Para [Inline]
- | LineBlock [[Inline]]
- | CodeBlock Attr Text
- | RawBlock Format Text
- | BlockQuote [Block]
- | OrderedList ListAttributes [[Block]]
- | BulletList [[Block]]
- | DefinitionList [([Inline], [[Block]])]
- | Header Int Attr [Inline]
- | HorizontalRule
- | Table Attr Caption [ColSpec] TableHead [TableBody] TableFoot
- | Figure Attr Caption [Block]
- | Div Attr [Block]
- pattern SimpleFigure :: Attr -> [Inline] -> Target -> Block
- data Inline
- = Str Text
- | Emph [Inline]
- | Underline [Inline]
- | Strong [Inline]
- | Strikeout [Inline]
- | Superscript [Inline]
- | Subscript [Inline]
- | SmallCaps [Inline]
- | Quoted QuoteType [Inline]
- | Cite [Citation] [Inline]
- | Code Attr Text
- | Space
- | SoftBreak
- | LineBreak
- | Math MathType Text
- | RawInline Format Text
- | Link Attr [Inline] Target
- | Image Attr [Inline] Target
- | Note [Block]
- | Span Attr [Inline]
- type ListAttributes = (Int, ListNumberStyle, ListNumberDelim)
- data ListNumberStyle
- data ListNumberDelim
- newtype Format = Format Text
- type Attr = (Text, [Text], [(Text, Text)])
- nullAttr :: Attr
- data Caption = Caption (Maybe ShortCaption) [Block]
- type ShortCaption = [Inline]
- newtype RowHeadColumns = RowHeadColumns Int
- data Alignment
- data ColWidth
- type ColSpec = (Alignment, ColWidth)
- data Row = Row Attr [Cell]
- data TableHead = TableHead Attr [Row]
- data TableBody = TableBody Attr RowHeadColumns [Row] [Row]
- data TableFoot = TableFoot Attr [Row]
- data Cell = Cell Attr Alignment RowSpan ColSpan [Block]
- newtype RowSpan = RowSpan Int
- newtype ColSpan = ColSpan Int
- data QuoteType
- type Target = (Text, Text)
- data MathType
- data Citation = Citation {
- citationId :: Text
- citationPrefix :: [Inline]
- citationSuffix :: [Inline]
- citationMode :: CitationMode
- citationNoteNum :: Int
- citationHash :: Int
- data CitationMode
- pandocTypesVersion :: Version
Documentation
Instances
Metadata for the document: title, authors, date.
Instances
Arbitrary Meta Source # | |||||
FromJSON Meta Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Meta Source # | |||||
Data Meta Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Meta -> c Meta # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Meta # dataTypeOf :: Meta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Meta) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Meta) # gmapT :: (forall b. Data b => b -> b) -> Meta -> Meta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r # gmapQ :: (forall d. Data d => d -> u) -> Meta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Meta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Meta -> m Meta # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta # | |||||
Monoid Meta Source # | |||||
Semigroup Meta Source # | |||||
Generic Meta Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Meta Source # | |||||
Show Meta Source # | |||||
NFData Meta Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Meta Source # | |||||
Ord Meta Source # | |||||
HasMeta Meta Source # | |||||
Defined in Text.Pandoc.Builder | |||||
Walkable Block Meta Source # | |||||
Walkable Inline Meta Source # | |||||
Walkable Meta Meta Source # | |||||
Walkable Meta Pandoc Source # | |||||
Walkable MetaValue Meta Source # | |||||
Walkable [Block] Meta Source # | |||||
Walkable [Inline] Meta Source # | |||||
type Rep Meta Source # | |||||
Defined in Text.Pandoc.Definition |
Constructors
MetaMap (Map Text MetaValue) | |
MetaList [MetaValue] | |
MetaBool Bool | |
MetaString Text | |
MetaInlines [Inline] | |
MetaBlocks [Block] |
Instances
FromJSON MetaValue Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON MetaValue Source # | |||||
Data MetaValue Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetaValue -> c MetaValue # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetaValue # toConstr :: MetaValue -> Constr # dataTypeOf :: MetaValue -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MetaValue) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetaValue) # gmapT :: (forall b. Data b => b -> b) -> MetaValue -> MetaValue # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r # gmapQ :: (forall d. Data d => d -> u) -> MetaValue -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MetaValue -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue # | |||||
Generic MetaValue Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read MetaValue Source # | |||||
Show MetaValue Source # | |||||
NFData MetaValue Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq MetaValue Source # | |||||
Ord MetaValue Source # | |||||
ToMetaValue MetaValue Source # | |||||
Defined in Text.Pandoc.Builder Methods toMetaValue :: MetaValue -> MetaValue Source # | |||||
Walkable Block MetaValue Source # | |||||
Walkable Inline MetaValue Source # | |||||
Walkable MetaValue Meta Source # | |||||
Walkable MetaValue MetaValue Source # | |||||
Walkable MetaValue Pandoc Source # | |||||
Walkable [Block] MetaValue Source # | |||||
Walkable [Inline] MetaValue Source # | |||||
type Rep MetaValue Source # | |||||
Defined in Text.Pandoc.Definition type Rep MetaValue = D1 ('MetaData "MetaValue" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) ((C1 ('MetaCons "MetaMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text MetaValue))) :+: (C1 ('MetaCons "MetaList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetaValue])) :+: C1 ('MetaCons "MetaBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :+: (C1 ('MetaCons "MetaString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "MetaInlines" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "MetaBlocks" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))))) |
isNullMeta :: Meta -> Bool Source #
docTitle :: Meta -> [Inline] Source #
Extract document title from metadata; works just like the old docTitle
.
docAuthors :: Meta -> [[Inline]] Source #
Extract document authors from metadata; works just like the old
docAuthors
.
Block element.
Constructors
Plain [Inline] | Plain text, not a paragraph |
Para [Inline] | Paragraph |
LineBlock [[Inline]] | Multiple non-breaking lines |
CodeBlock Attr Text | Code block (literal) with attributes |
RawBlock Format Text | Raw block |
BlockQuote [Block] | Block quote (list of blocks) |
OrderedList ListAttributes [[Block]] | Ordered list (attributes and a list of items, each a list of blocks) |
BulletList [[Block]] | Bullet list (list of items, each a list of blocks) |
DefinitionList [([Inline], [[Block]])] | Definition list. Each list item is a pair consisting of a term (a list of inlines) and one or more definitions (each a list of blocks) |
Header Int Attr [Inline] | Header - level (integer) and text (inlines) |
HorizontalRule | Horizontal rule |
Table Attr Caption [ColSpec] TableHead [TableBody] TableFoot | Table, with attributes, caption, optional short caption, column alignments and widths (required), table head, table bodies, and table foot |
Figure Attr Caption [Block] | Figure, with attributes, caption, and content (list of blocks) |
Div Attr [Block] | Generic block container with attributes |
Instances
Arbitrary Blocks Source # | |||||
Arbitrary Block Source # | |||||
FromJSON Block Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Block Source # | |||||
Data Block Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Block -> c Block # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Block # dataTypeOf :: Block -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Block) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Block) # gmapT :: (forall b. Data b => b -> b) -> Block -> Block # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Block -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Block -> r # gmapQ :: (forall d. Data d => d -> u) -> Block -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Block -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Block -> m Block # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Block -> m Block # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Block -> m Block # | |||||
Monoid Blocks Source # | |||||
Semigroup Blocks Source # | |||||
Generic Block Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Block Source # | |||||
Show Block Source # | |||||
NFData Block Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Block Source # | |||||
Ord Block Source # | |||||
ToMetaValue Blocks Source # | |||||
Defined in Text.Pandoc.Builder Methods toMetaValue :: Blocks -> MetaValue Source # | |||||
Walkable Block Block Source # | |||||
Walkable Block Caption Source # | |||||
Walkable Block Cell Source # | |||||
Walkable Block Citation Source # | |||||
Walkable Block Inline Source # | |||||
Walkable Block Meta Source # | |||||
Walkable Block MetaValue Source # | |||||
Walkable Block Pandoc Source # | |||||
Walkable Block Row Source # | |||||
Walkable Block TableBody Source # | |||||
Walkable Block TableFoot Source # | |||||
Walkable Block TableHead Source # | |||||
Walkable Inline Block Source # | |||||
Walkable [Block] Block Source # | |||||
Walkable [Block] Caption Source # | |||||
Walkable [Block] Cell Source # | |||||
Walkable [Block] Citation Source # | |||||
Walkable [Block] Inline Source # | |||||
Walkable [Block] Meta Source # | |||||
Walkable [Block] MetaValue Source # | |||||
Walkable [Block] Pandoc Source # | |||||
Walkable [Block] Row Source # | |||||
Walkable [Block] TableBody Source # | |||||
Walkable [Block] TableFoot Source # | |||||
Walkable [Block] TableHead Source # | |||||
Walkable [Inline] Block Source # | |||||
Walkable [Block] [Block] Source # | |||||
type Rep Block Source # | |||||
Defined in Text.Pandoc.Definition type Rep Block = D1 ('MetaData "Block" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (((C1 ('MetaCons "Plain" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: (C1 ('MetaCons "Para" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "LineBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [[Inline]])))) :+: ((C1 ('MetaCons "CodeBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "RawBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons "BlockQuote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block])) :+: C1 ('MetaCons "OrderedList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListAttributes) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [[Block]]))))) :+: ((C1 ('MetaCons "BulletList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [[Block]])) :+: (C1 ('MetaCons "DefinitionList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [([Inline], [[Block]])])) :+: C1 ('MetaCons "Header" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))))) :+: ((C1 ('MetaCons "HorizontalRule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Table" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Caption) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ColSpec]))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableHead) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TableBody]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableFoot))))) :+: (C1 ('MetaCons "Figure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Caption) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))) :+: C1 ('MetaCons "Div" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block])))))) |
pattern SimpleFigure :: Attr -> [Inline] -> Target -> Block Source #
Bidirectional patter synonym
It can pass as a Block constructor
>>>
SimpleFigure nullAttr [] (T.pack "", T.pack "title")
Para [Image ("",[],[]) [] ("","fig:title")]
It can be used to pattern match >>> let img = Para [Image undefined undefined (undefined, T.pack "title")] >>> case img of { SimpleFigure _ _ _ -> True; _ -> False } False >>> let fig = Para [Image undefined undefined (undefined, T.pack "fig:title")] >>> case fig of { SimpleFigure _ _ tit -> snd tit; _ -> T.pack "" } "title"
Inline elements.
Constructors
Str Text | Text (string) |
Emph [Inline] | Emphasized text (list of inlines) |
Underline [Inline] | Underlined text (list of inlines) |
Strong [Inline] | Strongly emphasized text (list of inlines) |
Strikeout [Inline] | Strikeout text (list of inlines) |
Superscript [Inline] | Superscripted text (list of inlines) |
Subscript [Inline] | Subscripted text (list of inlines) |
SmallCaps [Inline] | Small caps text (list of inlines) |
Quoted QuoteType [Inline] | Quoted text (list of inlines) |
Cite [Citation] [Inline] | Citation (list of inlines) |
Code Attr Text | Inline code (literal) |
Space | Inter-word space |
SoftBreak | Soft line break |
LineBreak | Hard line break |
Math MathType Text | TeX math (literal) |
RawInline Format Text | Raw inline |
Link Attr [Inline] Target | Hyperlink: alt text (list of inlines), target |
Image Attr [Inline] Target | Image: alt text (list of inlines), target |
Note [Block] | Footnote or endnote |
Span Attr [Inline] | Generic inline container with attributes |
Instances
Arbitrary Inlines Source # | |||||
Arbitrary Inline Source # | |||||
FromJSON Inline Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Inline Source # | |||||
Data Inline Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Inline -> c Inline # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Inline # toConstr :: Inline -> Constr # dataTypeOf :: Inline -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Inline) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Inline) # gmapT :: (forall b. Data b => b -> b) -> Inline -> Inline # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r # gmapQ :: (forall d. Data d => d -> u) -> Inline -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Inline -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Inline -> m Inline # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline # | |||||
IsString Inlines Source # | |||||
Defined in Text.Pandoc.Builder Methods fromString :: String -> Inlines # | |||||
Monoid Inlines Source # | |||||
Semigroup Inlines Source # | |||||
Generic Inline Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Inline Source # | |||||
Show Inline Source # | |||||
NFData Inline Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Inline Source # | |||||
Ord Inline Source # | |||||
ToMetaValue Inlines Source # | |||||
Defined in Text.Pandoc.Builder Methods toMetaValue :: Inlines -> MetaValue Source # | |||||
Walkable Block Inline Source # | |||||
Walkable Inline Block Source # | |||||
Walkable Inline Caption Source # | |||||
Walkable Inline Cell Source # | |||||
Walkable Inline Citation Source # | |||||
Walkable Inline Inline Source # | |||||
Walkable Inline Meta Source # | |||||
Walkable Inline MetaValue Source # | |||||
Walkable Inline Pandoc Source # | |||||
Walkable Inline Row Source # | |||||
Walkable Inline TableBody Source # | |||||
Walkable Inline TableFoot Source # | |||||
Walkable Inline TableHead Source # | |||||
Walkable [Block] Inline Source # | |||||
Walkable [Inline] Block Source # | |||||
Walkable [Inline] Caption Source # | |||||
Walkable [Inline] Cell Source # | |||||
Walkable [Inline] Citation Source # | |||||
Walkable [Inline] Inline Source # | |||||
Walkable [Inline] Meta Source # | |||||
Walkable [Inline] MetaValue Source # | |||||
Walkable [Inline] Pandoc Source # | |||||
Walkable [Inline] Row Source # | |||||
Walkable [Inline] TableBody Source # | |||||
Walkable [Inline] TableFoot Source # | |||||
Walkable [Inline] TableHead Source # | |||||
Walkable [Inline] [Inline] Source # | |||||
type Rep Inline Source # | |||||
Defined in Text.Pandoc.Definition type Rep Inline = D1 ('MetaData "Inline" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) ((((C1 ('MetaCons "Str" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Emph" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :+: (C1 ('MetaCons "Underline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: (C1 ('MetaCons "Strong" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Strikeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))))) :+: ((C1 ('MetaCons "Superscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Subscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :+: (C1 ('MetaCons "SmallCaps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: (C1 ('MetaCons "Quoted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QuoteType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])) :+: C1 ('MetaCons "Cite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Citation]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline])))))) :+: (((C1 ('MetaCons "Code" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Space" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SoftBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LineBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Math" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MathType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))) :+: ((C1 ('MetaCons "RawInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Link" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target)))) :+: (C1 ('MetaCons "Image" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target))) :+: (C1 ('MetaCons "Note" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block])) :+: C1 ('MetaCons "Span" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))))))) |
type ListAttributes = (Int, ListNumberStyle, ListNumberDelim) Source #
List attributes. The first element of the triple is the start number of the list.
data ListNumberStyle Source #
Style of list numbers.
Constructors
DefaultStyle | |
Example | |
Decimal | |
LowerRoman | |
UpperRoman | |
LowerAlpha | |
UpperAlpha |
Instances
Arbitrary ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Arbitrary | |||||
FromJSON ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser ListNumberStyle # parseJSONList :: Value -> Parser [ListNumberStyle] # | |||||
ToJSON ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: ListNumberStyle -> Value # toEncoding :: ListNumberStyle -> Encoding # toJSONList :: [ListNumberStyle] -> Value # toEncodingList :: [ListNumberStyle] -> Encoding # omitField :: ListNumberStyle -> Bool # | |||||
Data ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberStyle -> c ListNumberStyle # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberStyle # toConstr :: ListNumberStyle -> Constr # dataTypeOf :: ListNumberStyle -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberStyle) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberStyle) # gmapT :: (forall b. Data b => b -> b) -> ListNumberStyle -> ListNumberStyle # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r # gmapQ :: (forall d. Data d => d -> u) -> ListNumberStyle -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberStyle -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle # | |||||
Generic ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: ListNumberStyle -> Rep ListNumberStyle x # to :: Rep ListNumberStyle x -> ListNumberStyle # | |||||
Read ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods readsPrec :: Int -> ReadS ListNumberStyle # readList :: ReadS [ListNumberStyle] # | |||||
Show ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods showsPrec :: Int -> ListNumberStyle -> ShowS # show :: ListNumberStyle -> String # showList :: [ListNumberStyle] -> ShowS # | |||||
NFData ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods rnf :: ListNumberStyle -> () # | |||||
Eq ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods (==) :: ListNumberStyle -> ListNumberStyle -> Bool # (/=) :: ListNumberStyle -> ListNumberStyle -> Bool # | |||||
Ord ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition Methods compare :: ListNumberStyle -> ListNumberStyle -> Ordering # (<) :: ListNumberStyle -> ListNumberStyle -> Bool # (<=) :: ListNumberStyle -> ListNumberStyle -> Bool # (>) :: ListNumberStyle -> ListNumberStyle -> Bool # (>=) :: ListNumberStyle -> ListNumberStyle -> Bool # max :: ListNumberStyle -> ListNumberStyle -> ListNumberStyle # min :: ListNumberStyle -> ListNumberStyle -> ListNumberStyle # | |||||
type Rep ListNumberStyle Source # | |||||
Defined in Text.Pandoc.Definition type Rep ListNumberStyle = D1 ('MetaData "ListNumberStyle" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) ((C1 ('MetaCons "DefaultStyle" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Example" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Decimal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "LowerRoman" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperRoman" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LowerAlpha" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperAlpha" 'PrefixI 'False) (U1 :: Type -> Type)))) |
data ListNumberDelim Source #
Delimiter of list numbers.
Constructors
DefaultDelim | |
Period | |
OneParen | |
TwoParens |
Instances
Arbitrary ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Arbitrary | |||||
FromJSON ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser ListNumberDelim # parseJSONList :: Value -> Parser [ListNumberDelim] # | |||||
ToJSON ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: ListNumberDelim -> Value # toEncoding :: ListNumberDelim -> Encoding # toJSONList :: [ListNumberDelim] -> Value # toEncodingList :: [ListNumberDelim] -> Encoding # omitField :: ListNumberDelim -> Bool # | |||||
Data ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberDelim -> c ListNumberDelim # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberDelim # toConstr :: ListNumberDelim -> Constr # dataTypeOf :: ListNumberDelim -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberDelim) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberDelim) # gmapT :: (forall b. Data b => b -> b) -> ListNumberDelim -> ListNumberDelim # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r # gmapQ :: (forall d. Data d => d -> u) -> ListNumberDelim -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberDelim -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim # | |||||
Generic ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: ListNumberDelim -> Rep ListNumberDelim x # to :: Rep ListNumberDelim x -> ListNumberDelim # | |||||
Read ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods readsPrec :: Int -> ReadS ListNumberDelim # readList :: ReadS [ListNumberDelim] # | |||||
Show ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods showsPrec :: Int -> ListNumberDelim -> ShowS # show :: ListNumberDelim -> String # showList :: [ListNumberDelim] -> ShowS # | |||||
NFData ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods rnf :: ListNumberDelim -> () # | |||||
Eq ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods (==) :: ListNumberDelim -> ListNumberDelim -> Bool # (/=) :: ListNumberDelim -> ListNumberDelim -> Bool # | |||||
Ord ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition Methods compare :: ListNumberDelim -> ListNumberDelim -> Ordering # (<) :: ListNumberDelim -> ListNumberDelim -> Bool # (<=) :: ListNumberDelim -> ListNumberDelim -> Bool # (>) :: ListNumberDelim -> ListNumberDelim -> Bool # (>=) :: ListNumberDelim -> ListNumberDelim -> Bool # max :: ListNumberDelim -> ListNumberDelim -> ListNumberDelim # min :: ListNumberDelim -> ListNumberDelim -> ListNumberDelim # | |||||
type Rep ListNumberDelim Source # | |||||
Defined in Text.Pandoc.Definition type Rep ListNumberDelim = D1 ('MetaData "ListNumberDelim" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) ((C1 ('MetaCons "DefaultDelim" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Period" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OneParen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TwoParens" 'PrefixI 'False) (U1 :: Type -> Type))) |
Formats for raw blocks
Instances
FromJSON Format Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Format Source # | |||||
Data Format Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Format -> c Format # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Format # toConstr :: Format -> Constr # dataTypeOf :: Format -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Format) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Format) # gmapT :: (forall b. Data b => b -> b) -> Format -> Format # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r # gmapQ :: (forall d. Data d => d -> u) -> Format -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Format -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Format -> m Format # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format # | |||||
IsString Format Source # | |||||
Defined in Text.Pandoc.Definition Methods fromString :: String -> Format # | |||||
Generic Format Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Format Source # | |||||
Show Format Source # | |||||
NFData Format Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Format Source # | |||||
Ord Format Source # | |||||
(ToJSONFilter m a, MonadIO m) => ToJSONFilter m (Maybe Format -> a) Source # | |||||
Defined in Text.Pandoc.JSON Methods toJSONFilter :: (Maybe Format -> a) -> m () Source # | |||||
type Rep Format Source # | |||||
Defined in Text.Pandoc.Definition |
The caption of a table or figure, with optional short caption.
Constructors
Caption (Maybe ShortCaption) [Block] |
Instances
Arbitrary Caption Source # | |||||
FromJSON Caption Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Caption Source # | |||||
Data Caption Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Caption -> c Caption # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Caption # toConstr :: Caption -> Constr # dataTypeOf :: Caption -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Caption) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Caption) # gmapT :: (forall b. Data b => b -> b) -> Caption -> Caption # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r # gmapQ :: (forall d. Data d => d -> u) -> Caption -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Caption -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Caption -> m Caption # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption # | |||||
Generic Caption Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Caption Source # | |||||
Show Caption Source # | |||||
NFData Caption Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Caption Source # | |||||
Ord Caption Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Walkable Block Caption Source # | |||||
Walkable Inline Caption Source # | |||||
Walkable [Block] Caption Source # | |||||
Walkable [Inline] Caption Source # | |||||
type Rep Caption Source # | |||||
Defined in Text.Pandoc.Definition type Rep Caption = D1 ('MetaData "Caption" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "Caption" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ShortCaption)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))) |
type ShortCaption = [Inline] Source #
A short caption, for use in, for instance, lists of figures.
newtype RowHeadColumns Source #
The number of columns taken up by the row head of each row of a
TableBody
. The row body takes up the remaining columns.
Constructors
RowHeadColumns Int |
Instances
FromJSON RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods parseJSON :: Value -> Parser RowHeadColumns # parseJSONList :: Value -> Parser [RowHeadColumns] # | |||||
ToJSON RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: RowHeadColumns -> Value # toEncoding :: RowHeadColumns -> Encoding # toJSONList :: [RowHeadColumns] -> Value # toEncodingList :: [RowHeadColumns] -> Encoding # omitField :: RowHeadColumns -> Bool # | |||||
Data RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RowHeadColumns -> c RowHeadColumns # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RowHeadColumns # toConstr :: RowHeadColumns -> Constr # dataTypeOf :: RowHeadColumns -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RowHeadColumns) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RowHeadColumns) # gmapT :: (forall b. Data b => b -> b) -> RowHeadColumns -> RowHeadColumns # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RowHeadColumns -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RowHeadColumns -> r # gmapQ :: (forall d. Data d => d -> u) -> RowHeadColumns -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RowHeadColumns -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RowHeadColumns -> m RowHeadColumns # | |||||
Enum RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods succ :: RowHeadColumns -> RowHeadColumns # pred :: RowHeadColumns -> RowHeadColumns # toEnum :: Int -> RowHeadColumns # fromEnum :: RowHeadColumns -> Int # enumFrom :: RowHeadColumns -> [RowHeadColumns] # enumFromThen :: RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] # enumFromTo :: RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] # enumFromThenTo :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns -> [RowHeadColumns] # | |||||
Generic RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
Methods from :: RowHeadColumns -> Rep RowHeadColumns x # to :: Rep RowHeadColumns x -> RowHeadColumns # | |||||
Num RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods (+) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns # (-) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns # (*) :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns # negate :: RowHeadColumns -> RowHeadColumns # abs :: RowHeadColumns -> RowHeadColumns # signum :: RowHeadColumns -> RowHeadColumns # fromInteger :: Integer -> RowHeadColumns # | |||||
Read RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods readsPrec :: Int -> ReadS RowHeadColumns # readList :: ReadS [RowHeadColumns] # | |||||
Show RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods showsPrec :: Int -> RowHeadColumns -> ShowS # show :: RowHeadColumns -> String # showList :: [RowHeadColumns] -> ShowS # | |||||
NFData RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods rnf :: RowHeadColumns -> () # | |||||
Eq RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods (==) :: RowHeadColumns -> RowHeadColumns -> Bool # (/=) :: RowHeadColumns -> RowHeadColumns -> Bool # | |||||
Ord RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition Methods compare :: RowHeadColumns -> RowHeadColumns -> Ordering # (<) :: RowHeadColumns -> RowHeadColumns -> Bool # (<=) :: RowHeadColumns -> RowHeadColumns -> Bool # (>) :: RowHeadColumns -> RowHeadColumns -> Bool # (>=) :: RowHeadColumns -> RowHeadColumns -> Bool # max :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns # min :: RowHeadColumns -> RowHeadColumns -> RowHeadColumns # | |||||
type Rep RowHeadColumns Source # | |||||
Defined in Text.Pandoc.Definition type Rep RowHeadColumns = D1 ('MetaData "RowHeadColumns" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'True) (C1 ('MetaCons "RowHeadColumns" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
Alignment of a table column.
Constructors
AlignLeft | |
AlignRight | |
AlignCenter | |
AlignDefault |
Instances
Arbitrary Alignment Source # | |||||
FromJSON Alignment Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Alignment Source # | |||||
Data Alignment Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Alignment -> c Alignment # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Alignment # toConstr :: Alignment -> Constr # dataTypeOf :: Alignment -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Alignment) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Alignment) # gmapT :: (forall b. Data b => b -> b) -> Alignment -> Alignment # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r # gmapQ :: (forall d. Data d => d -> u) -> Alignment -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Alignment -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment # | |||||
Generic Alignment Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Alignment Source # | |||||
Show Alignment Source # | |||||
NFData Alignment Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Alignment Source # | |||||
Ord Alignment Source # | |||||
type Rep Alignment Source # | |||||
Defined in Text.Pandoc.Definition type Rep Alignment = D1 ('MetaData "Alignment" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) ((C1 ('MetaCons "AlignLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignRight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AlignCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignDefault" 'PrefixI 'False) (U1 :: Type -> Type))) |
The width of a table column, as a percentage of the text width.
Constructors
ColWidth Double | |
ColWidthDefault |
Instances
FromJSON ColWidth Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON ColWidth Source # | |||||
Data ColWidth Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColWidth -> c ColWidth # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColWidth # toConstr :: ColWidth -> Constr # dataTypeOf :: ColWidth -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColWidth) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColWidth) # gmapT :: (forall b. Data b => b -> b) -> ColWidth -> ColWidth # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColWidth -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColWidth -> r # gmapQ :: (forall d. Data d => d -> u) -> ColWidth -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColWidth -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColWidth -> m ColWidth # | |||||
Generic ColWidth Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read ColWidth Source # | |||||
Show ColWidth Source # | |||||
NFData ColWidth Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq ColWidth Source # | |||||
Ord ColWidth Source # | |||||
Defined in Text.Pandoc.Definition | |||||
type Rep ColWidth Source # | |||||
Defined in Text.Pandoc.Definition type Rep ColWidth = D1 ('MetaData "ColWidth" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "ColWidth" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "ColWidthDefault" 'PrefixI 'False) (U1 :: Type -> Type)) |
A table row.
Instances
Arbitrary Row Source # | |||||
FromJSON Row Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Row Source # | |||||
Data Row Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Row -> c Row # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Row # dataTypeOf :: Row -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Row) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Row) # gmapT :: (forall b. Data b => b -> b) -> Row -> Row # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Row -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Row -> r # gmapQ :: (forall d. Data d => d -> u) -> Row -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Row -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Row -> m Row # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Row -> m Row # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Row -> m Row # | |||||
Generic Row Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Row Source # | |||||
Show Row Source # | |||||
NFData Row Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Row Source # | |||||
Ord Row Source # | |||||
Walkable Block Row Source # | |||||
Walkable Inline Row Source # | |||||
Walkable [Block] Row Source # | |||||
Walkable [Inline] Row Source # | |||||
type Rep Row Source # | |||||
Defined in Text.Pandoc.Definition type Rep Row = D1 ('MetaData "Row" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "Row" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Cell]))) |
The head of a table.
Instances
Arbitrary TableHead Source # | |||||
FromJSON TableHead Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON TableHead Source # | |||||
Data TableHead Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableHead -> c TableHead # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableHead # toConstr :: TableHead -> Constr # dataTypeOf :: TableHead -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableHead) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableHead) # gmapT :: (forall b. Data b => b -> b) -> TableHead -> TableHead # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableHead -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableHead -> r # gmapQ :: (forall d. Data d => d -> u) -> TableHead -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableHead -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableHead -> m TableHead # | |||||
Generic TableHead Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read TableHead Source # | |||||
Show TableHead Source # | |||||
NFData TableHead Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq TableHead Source # | |||||
Ord TableHead Source # | |||||
Walkable Block TableHead Source # | |||||
Walkable Inline TableHead Source # | |||||
Walkable [Block] TableHead Source # | |||||
Walkable [Inline] TableHead Source # | |||||
type Rep TableHead Source # | |||||
Defined in Text.Pandoc.Definition type Rep TableHead = D1 ('MetaData "TableHead" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "TableHead" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]))) |
A body of a table, with an intermediate head, intermediate body, and the specified number of row header columns in the intermediate body.
Constructors
TableBody Attr RowHeadColumns [Row] [Row] |
Instances
Arbitrary TableBody Source # | |||||
FromJSON TableBody Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON TableBody Source # | |||||
Data TableBody Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableBody -> c TableBody # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableBody # toConstr :: TableBody -> Constr # dataTypeOf :: TableBody -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableBody) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableBody) # gmapT :: (forall b. Data b => b -> b) -> TableBody -> TableBody # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableBody -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableBody -> r # gmapQ :: (forall d. Data d => d -> u) -> TableBody -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableBody -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableBody -> m TableBody # | |||||
Generic TableBody Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read TableBody Source # | |||||
Show TableBody Source # | |||||
NFData TableBody Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq TableBody Source # | |||||
Ord TableBody Source # | |||||
Walkable Block TableBody Source # | |||||
Walkable Inline TableBody Source # | |||||
Walkable [Block] TableBody Source # | |||||
Walkable [Inline] TableBody Source # | |||||
type Rep TableBody Source # | |||||
Defined in Text.Pandoc.Definition type Rep TableBody = D1 ('MetaData "TableBody" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "TableBody" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RowHeadColumns)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row])))) |
The foot of a table.
Instances
Arbitrary TableFoot Source # | |||||
FromJSON TableFoot Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON TableFoot Source # | |||||
Data TableFoot Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableFoot -> c TableFoot # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableFoot # toConstr :: TableFoot -> Constr # dataTypeOf :: TableFoot -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableFoot) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableFoot) # gmapT :: (forall b. Data b => b -> b) -> TableFoot -> TableFoot # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableFoot -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableFoot -> r # gmapQ :: (forall d. Data d => d -> u) -> TableFoot -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableFoot -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableFoot -> m TableFoot # | |||||
Generic TableFoot Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read TableFoot Source # | |||||
Show TableFoot Source # | |||||
NFData TableFoot Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq TableFoot Source # | |||||
Ord TableFoot Source # | |||||
Walkable Block TableFoot Source # | |||||
Walkable Inline TableFoot Source # | |||||
Walkable [Block] TableFoot Source # | |||||
Walkable [Inline] TableFoot Source # | |||||
type Rep TableFoot Source # | |||||
Defined in Text.Pandoc.Definition type Rep TableFoot = D1 ('MetaData "TableFoot" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "TableFoot" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Row]))) |
A table cell.
Instances
Arbitrary Cell Source # | |||||
FromJSON Cell Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Cell Source # | |||||
Data Cell Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Cell -> c Cell # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Cell # dataTypeOf :: Cell -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Cell) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Cell) # gmapT :: (forall b. Data b => b -> b) -> Cell -> Cell # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r # gmapQ :: (forall d. Data d => d -> u) -> Cell -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Cell -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Cell -> m Cell # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell # | |||||
Generic Cell Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Cell Source # | |||||
Show Cell Source # | |||||
NFData Cell Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Cell Source # | |||||
Ord Cell Source # | |||||
Walkable Block Cell Source # | |||||
Walkable Inline Cell Source # | |||||
Walkable [Block] Cell Source # | |||||
Walkable [Inline] Cell Source # | |||||
type Rep Cell Source # | |||||
Defined in Text.Pandoc.Definition type Rep Cell = D1 ('MetaData "Cell" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "Cell" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Alignment)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RowSpan) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ColSpan) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))))) |
The number of rows occupied by a cell; the height of a cell.
Instances
FromJSON RowSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON RowSpan Source # | |||||
Data RowSpan Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RowSpan -> c RowSpan # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RowSpan # toConstr :: RowSpan -> Constr # dataTypeOf :: RowSpan -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RowSpan) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RowSpan) # gmapT :: (forall b. Data b => b -> b) -> RowSpan -> RowSpan # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RowSpan -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RowSpan -> r # gmapQ :: (forall d. Data d => d -> u) -> RowSpan -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RowSpan -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RowSpan -> m RowSpan # | |||||
Enum RowSpan Source # | |||||
Generic RowSpan Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Num RowSpan Source # | |||||
Read RowSpan Source # | |||||
Show RowSpan Source # | |||||
NFData RowSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq RowSpan Source # | |||||
Ord RowSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
type Rep RowSpan Source # | |||||
Defined in Text.Pandoc.Definition |
The number of columns occupied by a cell; the width of a cell.
Instances
FromJSON ColSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON ColSpan Source # | |||||
Data ColSpan Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColSpan -> c ColSpan # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColSpan # toConstr :: ColSpan -> Constr # dataTypeOf :: ColSpan -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColSpan) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColSpan) # gmapT :: (forall b. Data b => b -> b) -> ColSpan -> ColSpan # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColSpan -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColSpan -> r # gmapQ :: (forall d. Data d => d -> u) -> ColSpan -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColSpan -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSpan -> m ColSpan # | |||||
Enum ColSpan Source # | |||||
Generic ColSpan Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Num ColSpan Source # | |||||
Read ColSpan Source # | |||||
Show ColSpan Source # | |||||
NFData ColSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq ColSpan Source # | |||||
Ord ColSpan Source # | |||||
Defined in Text.Pandoc.Definition | |||||
type Rep ColSpan Source # | |||||
Defined in Text.Pandoc.Definition |
Type of quotation marks to use in Quoted inline.
Constructors
SingleQuote | |
DoubleQuote |
Instances
Arbitrary QuoteType Source # | |
FromJSON QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON QuoteType Source # | |
Data QuoteType Source # | |
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> QuoteType -> c QuoteType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c QuoteType # toConstr :: QuoteType -> Constr # dataTypeOf :: QuoteType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c QuoteType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c QuoteType) # gmapT :: (forall b. Data b => b -> b) -> QuoteType -> QuoteType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r # gmapQ :: (forall d. Data d => d -> u) -> QuoteType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> QuoteType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType # | |
Generic QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
Read QuoteType Source # | |
Show QuoteType Source # | |
NFData QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
Eq QuoteType Source # | |
Ord QuoteType Source # | |
type Rep QuoteType Source # | |
Type of math element (display or inline).
Constructors
DisplayMath | |
InlineMath |
Instances
Arbitrary MathType Source # | |
FromJSON MathType Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON MathType Source # | |
Data MathType Source # | |
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MathType -> c MathType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MathType # toConstr :: MathType -> Constr # dataTypeOf :: MathType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MathType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MathType) # gmapT :: (forall b. Data b => b -> b) -> MathType -> MathType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r # gmapQ :: (forall d. Data d => d -> u) -> MathType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MathType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MathType -> m MathType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType # | |
Generic MathType Source # | |
Defined in Text.Pandoc.Definition | |
Read MathType Source # | |
Show MathType Source # | |
NFData MathType Source # | |
Defined in Text.Pandoc.Definition | |
Eq MathType Source # | |
Ord MathType Source # | |
Defined in Text.Pandoc.Definition | |
type Rep MathType Source # | |
Constructors
Citation | |
Fields
|
Instances
Arbitrary Citation Source # | |||||
FromJSON Citation Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON Citation Source # | |||||
Data Citation Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Citation -> c Citation # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Citation # toConstr :: Citation -> Constr # dataTypeOf :: Citation -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Citation) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Citation) # gmapT :: (forall b. Data b => b -> b) -> Citation -> Citation # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r # gmapQ :: (forall d. Data d => d -> u) -> Citation -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Citation -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Citation -> m Citation # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation # | |||||
Generic Citation Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read Citation Source # | |||||
Show Citation Source # | |||||
NFData Citation Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Eq Citation Source # | |||||
Ord Citation Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Walkable Block Citation Source # | |||||
Walkable Inline Citation Source # | |||||
Walkable [Block] Citation Source # | |||||
Walkable [Inline] Citation Source # | |||||
type Rep Citation Source # | |||||
Defined in Text.Pandoc.Definition type Rep Citation = D1 ('MetaData "Citation" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "Citation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "citationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "citationPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]) :*: S1 ('MetaSel ('Just "citationSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Inline]))) :*: (S1 ('MetaSel ('Just "citationMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CitationMode) :*: (S1 ('MetaSel ('Just "citationNoteNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "citationHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))) |
data CitationMode Source #
Constructors
AuthorInText | |
SuppressAuthor | |
NormalCitation |
Instances
Arbitrary CitationMode Source # | |||||
Defined in Text.Pandoc.Arbitrary | |||||
FromJSON CitationMode Source # | |||||
Defined in Text.Pandoc.Definition | |||||
ToJSON CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods toJSON :: CitationMode -> Value # toEncoding :: CitationMode -> Encoding # toJSONList :: [CitationMode] -> Value # toEncodingList :: [CitationMode] -> Encoding # omitField :: CitationMode -> Bool # | |||||
Data CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CitationMode -> c CitationMode # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CitationMode # toConstr :: CitationMode -> Constr # dataTypeOf :: CitationMode -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CitationMode) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CitationMode) # gmapT :: (forall b. Data b => b -> b) -> CitationMode -> CitationMode # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r # gmapQ :: (forall d. Data d => d -> u) -> CitationMode -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CitationMode -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode # | |||||
Generic CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Associated Types
| |||||
Read CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods readsPrec :: Int -> ReadS CitationMode # readList :: ReadS [CitationMode] # | |||||
Show CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods showsPrec :: Int -> CitationMode -> ShowS # show :: CitationMode -> String # showList :: [CitationMode] -> ShowS # | |||||
NFData CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods rnf :: CitationMode -> () # | |||||
Eq CitationMode Source # | |||||
Defined in Text.Pandoc.Definition | |||||
Ord CitationMode Source # | |||||
Defined in Text.Pandoc.Definition Methods compare :: CitationMode -> CitationMode -> Ordering # (<) :: CitationMode -> CitationMode -> Bool # (<=) :: CitationMode -> CitationMode -> Bool # (>) :: CitationMode -> CitationMode -> Bool # (>=) :: CitationMode -> CitationMode -> Bool # max :: CitationMode -> CitationMode -> CitationMode # min :: CitationMode -> CitationMode -> CitationMode # | |||||
type Rep CitationMode Source # | |||||
Defined in Text.Pandoc.Definition type Rep CitationMode = D1 ('MetaData "CitationMode" "Text.Pandoc.Definition" "pandoc-types-1.23.1-CVybQwfTxyM35mCDRK6d9K" 'False) (C1 ('MetaCons "AuthorInText" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SuppressAuthor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NormalCitation" 'PrefixI 'False) (U1 :: Type -> Type))) |