Copyright | Copyright (C) 2006-2023 John MacFarlane |
---|---|
License | BSD3 |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
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
- = ColWidth Double
- | ColWidthDefault
- 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
Arbitrary Pandoc | |
FromJSON Pandoc Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Pandoc Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Pandoc -> Encoding toJSONList :: [Pandoc] -> Value toEncodingList :: [Pandoc] -> Encoding | |
Data Pandoc Source # | |
Defined in Text.Pandoc.Definition Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pandoc -> c Pandoc gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pandoc dataTypeOf :: Pandoc -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pandoc) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pandoc) gmapT :: (forall b. Data b => b -> b) -> Pandoc -> Pandoc gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r gmapQ :: (forall d. Data d => d -> u) -> Pandoc -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Pandoc -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc | |
Monoid Pandoc Source # | |
Semigroup Pandoc Source # | |
Generic Pandoc Source # | |
Read Pandoc Source # | |
Defined in Text.Pandoc.Definition | |
Show Pandoc Source # | |
NFData Pandoc Source # | |
Defined in Text.Pandoc.Definition | |
Eq Pandoc Source # | |
Ord Pandoc Source # | |
HasMeta Pandoc Source # | |
Defined in Text.Pandoc.Builder | |
Walkable Block Pandoc Source # | |
Walkable Inline Pandoc Source # | |
Walkable Meta Pandoc Source # | |
Walkable MetaValue Pandoc Source # | |
Walkable Pandoc Pandoc Source # | |
Walkable [Block] Pandoc Source # | |
Walkable [Inline] Pandoc Source # | |
type Rep Pandoc Source # | |
Defined in Text.Pandoc.Definition type Rep Pandoc = D1 ('MetaData "Pandoc" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'False) (C1 ('MetaCons "Pandoc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Meta) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Block]))) |
Metadata for the document: title, authors, date.
Instances
Arbitrary Meta | |
FromJSON Meta Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Meta Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Meta -> Encoding toJSONList :: [Meta] -> Value toEncodingList :: [Meta] -> Encoding | |
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 # | |
Read Meta Source # | |
Defined in Text.Pandoc.Definition | |
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 # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: MetaValue -> Encoding toJSONList :: [MetaValue] -> Value toEncodingList :: [MetaValue] -> Encoding | |
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 # | |
Read MetaValue Source # | |
Defined in Text.Pandoc.Definition | |
Show MetaValue Source # | |
NFData MetaValue Source # | |
Defined in Text.Pandoc.Definition | |
Eq MetaValue Source # | |
Ord MetaValue Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 #
lookupMeta :: Text -> Meta -> Maybe MetaValue Source #
Retrieve the metadata value for a given key
.
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 | |
Arbitrary Block | |
FromJSON Block Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Block Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Block -> Encoding toJSONList :: [Block] -> Value toEncodingList :: [Block] -> Encoding | |
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 | |
Semigroup Blocks | |
Generic Block Source # | |
Read Block Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
Arbitrary Inline | |
FromJSON Inline Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Inline Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Inline -> Encoding toJSONList :: [Inline] -> Value toEncodingList :: [Inline] -> Encoding | |
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 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 | |
Defined in Text.Pandoc.Builder Methods fromString :: String -> Inlines | |
Monoid Inlines | |
Semigroup Inlines | |
Generic Inline Source # | |
Read Inline Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
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 | |
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 type Rep ListNumberStyle :: Type -> Type 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] readPrec :: ReadPrec ListNumberStyle readListPrec :: ReadPrec [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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
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 | |
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 type Rep ListNumberDelim :: Type -> Type 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] readPrec :: ReadPrec ListNumberDelim readListPrec :: ReadPrec [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-4IEzS9FlHcpHAydoDZDCVg" '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
Constructors
Format Text |
Instances
FromJSON Format Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Format Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Format -> Encoding toJSONList :: [Format] -> Value toEncodingList :: [Format] -> Encoding | |
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 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 # | |
Read Format Source # | |
Defined in Text.Pandoc.Definition | |
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 type Rep Format = D1 ('MetaData "Format" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'True) (C1 ('MetaCons "Format" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
The caption of a table or figure, with optional short caption.
Constructors
Caption (Maybe ShortCaption) [Block] |
Instances
Arbitrary Caption | |
FromJSON Caption Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Caption Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Caption -> Encoding toJSONList :: [Caption] -> Value toEncodingList :: [Caption] -> Encoding | |
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 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 # | |
Read Caption Source # | |
Defined in Text.Pandoc.Definition | |
Show Caption Source # | |
NFData Caption Source # | |
Defined in Text.Pandoc.Definition | |
Eq Caption Source # | |
Ord Caption Source # | |
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-4IEzS9FlHcpHAydoDZDCVg" '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
Alignment of a table column.
Constructors
AlignLeft | |
AlignRight | |
AlignCenter | |
AlignDefault |
Instances
Arbitrary Alignment | |
FromJSON Alignment Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Alignment Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Alignment -> Encoding toJSONList :: [Alignment] -> Value toEncodingList :: [Alignment] -> Encoding | |
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 # | |
Read Alignment Source # | |
Defined in Text.Pandoc.Definition | |
Show Alignment Source # | |
NFData Alignment Source # | |
Defined in Text.Pandoc.Definition | |
Eq Alignment Source # | |
Ord Alignment Source # | |
Defined in Text.Pandoc.Definition | |
type Rep Alignment Source # | |
Defined in Text.Pandoc.Definition type Rep Alignment = D1 ('MetaData "Alignment" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" '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 # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: ColWidth -> Encoding toJSONList :: [ColWidth] -> Value toEncodingList :: [ColWidth] -> Encoding | |
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 # | |
Read ColWidth Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
FromJSON Row Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Row Source # | |
Defined in Text.Pandoc.Definition | |
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 # | |
Read Row Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
FromJSON TableHead Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON TableHead Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: TableHead -> Encoding toJSONList :: [TableHead] -> Value toEncodingList :: [TableHead] -> Encoding | |
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 # | |
Read TableHead Source # | |
Defined in Text.Pandoc.Definition | |
Show TableHead Source # | |
NFData TableHead Source # | |
Defined in Text.Pandoc.Definition | |
Eq TableHead Source # | |
Ord TableHead Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
FromJSON TableBody Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON TableBody Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: TableBody -> Encoding toJSONList :: [TableBody] -> Value toEncodingList :: [TableBody] -> Encoding | |
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 # | |
Read TableBody Source # | |
Defined in Text.Pandoc.Definition | |
Show TableBody Source # | |
NFData TableBody Source # | |
Defined in Text.Pandoc.Definition | |
Eq TableBody Source # | |
Ord TableBody Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
FromJSON TableFoot Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON TableFoot Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: TableFoot -> Encoding toJSONList :: [TableFoot] -> Value toEncodingList :: [TableFoot] -> Encoding | |
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 # | |
Read TableFoot Source # | |
Defined in Text.Pandoc.Definition | |
Show TableFoot Source # | |
NFData TableFoot Source # | |
Defined in Text.Pandoc.Definition | |
Eq TableFoot Source # | |
Ord TableFoot Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
FromJSON Cell Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Cell Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Cell -> Encoding toJSONList :: [Cell] -> Value toEncodingList :: [Cell] -> Encoding | |
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 # | |
Read Cell Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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.
Constructors
RowSpan Int |
Instances
FromJSON RowSpan Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON RowSpan Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: RowSpan -> Encoding toJSONList :: [RowSpan] -> Value toEncodingList :: [RowSpan] -> Encoding | |
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 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 # | |
Defined in Text.Pandoc.Definition | |
Generic RowSpan Source # | |
Num RowSpan Source # | |
Read RowSpan Source # | |
Defined in Text.Pandoc.Definition | |
Show RowSpan Source # | |
NFData RowSpan Source # | |
Defined in Text.Pandoc.Definition | |
Eq RowSpan Source # | |
Ord RowSpan Source # | |
type Rep RowSpan Source # | |
Defined in Text.Pandoc.Definition type Rep RowSpan = D1 ('MetaData "RowSpan" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'True) (C1 ('MetaCons "RowSpan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
The number of columns occupied by a cell; the width of a cell.
Constructors
ColSpan Int |
Instances
FromJSON ColSpan Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON ColSpan Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: ColSpan -> Encoding toJSONList :: [ColSpan] -> Value toEncodingList :: [ColSpan] -> Encoding | |
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 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 # | |
Defined in Text.Pandoc.Definition | |
Generic ColSpan Source # | |
Num ColSpan Source # | |
Read ColSpan Source # | |
Defined in Text.Pandoc.Definition | |
Show ColSpan Source # | |
NFData ColSpan Source # | |
Defined in Text.Pandoc.Definition | |
Eq ColSpan Source # | |
Ord ColSpan Source # | |
type Rep ColSpan Source # | |
Defined in Text.Pandoc.Definition type Rep ColSpan = D1 ('MetaData "ColSpan" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'True) (C1 ('MetaCons "ColSpan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
Type of quotation marks to use in Quoted inline.
Constructors
SingleQuote | |
DoubleQuote |
Instances
Arbitrary QuoteType | |
FromJSON QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON QuoteType Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: QuoteType -> Encoding toJSONList :: [QuoteType] -> Value toEncodingList :: [QuoteType] -> Encoding | |
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 # | |
Read QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
Show QuoteType Source # | |
NFData QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
Eq QuoteType Source # | |
Ord QuoteType Source # | |
Defined in Text.Pandoc.Definition | |
type Rep QuoteType Source # | |
Defined in Text.Pandoc.Definition type Rep QuoteType = D1 ('MetaData "QuoteType" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'False) (C1 ('MetaCons "SingleQuote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DoubleQuote" 'PrefixI 'False) (U1 :: Type -> Type)) |
Type of math element (display or inline).
Constructors
DisplayMath | |
InlineMath |
Instances
Arbitrary MathType | |
FromJSON MathType Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON MathType Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: MathType -> Encoding toJSONList :: [MathType] -> Value toEncodingList :: [MathType] -> Encoding | |
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 # | |
Read MathType Source # | |
Defined in Text.Pandoc.Definition | |
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 # | |
Defined in Text.Pandoc.Definition type Rep MathType = D1 ('MetaData "MathType" "Text.Pandoc.Definition" "pandoc-types-1.23.1-4IEzS9FlHcpHAydoDZDCVg" 'False) (C1 ('MetaCons "DisplayMath" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InlineMath" 'PrefixI 'False) (U1 :: Type -> Type)) |
Constructors
Citation | |
Fields
|
Instances
Arbitrary Citation | |
FromJSON Citation Source # | |
Defined in Text.Pandoc.Definition | |
ToJSON Citation Source # | |
Defined in Text.Pandoc.Definition Methods toEncoding :: Citation -> Encoding toJSONList :: [Citation] -> Value toEncodingList :: [Citation] -> Encoding | |
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 # | |
Read Citation Source # | |
Defined in Text.Pandoc.Definition | |
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-4IEzS9FlHcpHAydoDZDCVg" '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 | |
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 | |
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 type Rep CitationMode :: Type -> Type | |
Read CitationMode Source # | |
Defined in Text.Pandoc.Definition Methods readsPrec :: Int -> ReadS CitationMode readList :: ReadS [CitationMode] readPrec :: ReadPrec CitationMode readListPrec :: ReadPrec [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-4IEzS9FlHcpHAydoDZDCVg" '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))) |
pandocTypesVersion :: Version Source #