diff options
Diffstat (limited to 'src/Text/Pandoc/Definition.hs')
-rw-r--r-- | src/Text/Pandoc/Definition.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Definition.hs b/src/Text/Pandoc/Definition.hs index 2313b1ef1..d16309b4e 100644 --- a/src/Text/Pandoc/Definition.hs +++ b/src/Text/Pandoc/Definition.hs @@ -39,6 +39,12 @@ data Meta = Meta [Inline] -- title String -- date deriving (Eq, Show, Read) +-- | Alignment of a table column. +data Alignment = AlignLeft + | AlignRight + | AlignCenter + | AlignDefault deriving (Eq, Show, Read) + -- | Block element. data Block = Plain [Inline] -- ^ Plain text, not a paragraph @@ -57,6 +63,11 @@ data Block | HorizontalRule -- ^ Horizontal rule | Note String [Block] -- ^ Footnote or endnote - reference (string), -- text (list of blocks) + | Table [Inline] -- ^ Table caption, + [Alignment] -- column alignments, + [Float] -- column widths (relative to page), + [[Block]] -- column headers, and + [[[Block]]] -- rows deriving (Eq, Read, Show) -- | Target for a link: either a URL or an indirect (labeled) reference. |