| Portability | portable |
|---|---|
| Stability | alpha |
| Maintainer | John MacFarlane <jgm@berkeley.edu> |
| Safe Haskell | Safe-Infered |
Text.Pandoc.Definition
Description
Definition of Pandoc data structure for format-neutral representation
of documents.
- data Pandoc = Pandoc Meta [Block]
- data Meta = Meta {}
- data Alignment
- = AlignLeft
- | AlignRight
- | AlignCenter
- | AlignDefault
- type ListAttributes = (Int, ListNumberStyle, ListNumberDelim)
- data ListNumberStyle
- = DefaultStyle
- | Example
- | Decimal
- | LowerRoman
- | UpperRoman
- | LowerAlpha
- | UpperAlpha
- data ListNumberDelim
- = DefaultDelim
- | Period
- | OneParen
- | TwoParens
- type Attr = (String, [String], [(String, String)])
- nullAttr :: Attr
- type TableCell = [Block]
- type Format = String
- data Block
- = Plain [Inline]
- | Para [Inline]
- | CodeBlock Attr String
- | RawBlock Format String
- | BlockQuote [Block]
- | OrderedList ListAttributes [[Block]]
- | BulletList [[Block]]
- | DefinitionList [([Inline], [[Block]])]
- | Header Int [Inline]
- | HorizontalRule
- | Table [Inline] [Alignment] [Double] [TableCell] [[TableCell]]
- | Null
- data QuoteType
- type Target = (String, String)
- data MathType
- data Inline
- = Str String
- | Emph [Inline]
- | Strong [Inline]
- | Strikeout [Inline]
- | Superscript [Inline]
- | Subscript [Inline]
- | SmallCaps [Inline]
- | Quoted QuoteType [Inline]
- | Cite [Citation] [Inline]
- | Code Attr String
- | Space
- | LineBreak
- | Math MathType String
- | RawInline Format String
- | Link [Inline] Target
- | Image [Inline] Target
- | Note [Block]
- data Citation = Citation {}
- data CitationMode
Documentation
Bibliographic information for the document: title, authors, date.
Alignment of a table column.
Constructors
| AlignLeft | |
| AlignRight | |
| AlignCenter | |
| AlignDefault |
type ListAttributes = (Int, ListNumberStyle, ListNumberDelim)Source
List attributes.
data ListNumberStyle Source
Style of list numbers.
Constructors
| DefaultStyle | |
| Example | |
| Decimal | |
| LowerRoman | |
| UpperRoman | |
| LowerAlpha | |
| UpperAlpha |
data ListNumberDelim Source
Delimiter of list numbers.
Constructors
| DefaultDelim | |
| Period | |
| OneParen | |
| TwoParens |
type Attr = (String, [String], [(String, String)])Source
Attributes: identifier, classes, key-value pairs
Block element.
Constructors
| Plain [Inline] | Plain text, not a paragraph |
| Para [Inline] | Paragraph |
| CodeBlock Attr String | Code block (literal) with attributes |
| RawBlock Format String | 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 [Inline] | Header - level (integer) and text (inlines) |
| HorizontalRule | Horizontal rule |
| Table [Inline] [Alignment] [Double] [TableCell] [[TableCell]] | Table, with caption, column alignments, relative column widths (0 = default), column headers (each a list of blocks), and rows (each a list of lists of blocks) |
| Null | Nothing |
Type of quotation marks to use in Quoted inline.
Constructors
| SingleQuote | |
| DoubleQuote |
Type of math element (display or inline).
Constructors
| DisplayMath | |
| InlineMath |
Inline elements.
Constructors
| Str String | Text (string) |
| Emph [Inline] | Emphasized 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 String | Inline code (literal) |
| Space | Inter-word space |
| LineBreak | Hard line break |
| Math MathType String | TeX math (literal) |
| RawInline Format String | Raw inline |
| Link [Inline] Target | Hyperlink: text (list of inlines), target |
| Image [Inline] Target | Image: alt text (list of inlines), target and target |
| Note [Block] | Footnote or endnote |
Constructors
| Citation | |
Fields
| |
data CitationMode Source
Constructors
| AuthorInText | |
| SuppressAuthor | |
| NormalCitation |