--- desc: Standard defined in MultiMarkdown 5 --- Simplest table, without leading or trailing pipes . First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell .
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
. Simplest table, with both leading and trailing pipes . | First Header | Second Header | | ------------- | ------------- | | Content Cell | Content Cell | | Content Cell | Content Cell | .
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
. Center-aligned and right-aligned separators . | Item | Value | | :-------: | -----:| | Computer | $1600 | | Phone | $12 | | Pipe | $1 | .
Item Value
Computer $1600
Phone $12
Pipe $1
. Inline formatting such as code, strong tags . | Function name | Description | | ------------- | ------------------------------ | | `help()` | Display the help window. | | `destroy()` | **Destroy your computer!** | .
Function name Description
help() Display the help window.
destroy() Destroy your computer!
. > Requirement 1: There must be at least one | per line No valid pipes (escaped or fenced) at last line . First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content \| **Cell** \` Cell | New section \| More `|` Data\| .
First Header Second Header Third Header
Content | Cell ` Cell

New section | More | Data|

. No valid pipes (escaped or fenced) at first line . First Header \| Second Header`|`Third Header\| ------------ | :-----------: | -----------: | Content | **Cell** | Cell | New section | More | Data | .

First Header | Second Header|Third Header| ------------ | :-----------: | -----------: | Content | Cell | Cell | New section | More | Data |

. > Requirement 2: The “separator” line between headers and table content must contain only |,-, =, :,., +, or spaces > Comment: No implementation details on how to denote wrappable, so here it follows MultiMarkdown-5 `extend` class Equal signs in center-aligned separator . First Header | Second Header | Third Header | ============ | :===========: | ===========: | Content | **Cell** | Cell | New section | More | Data | .
First Header Second Header Third Header
Content Cell Cell
New section More Data
. Wrappable notation in simple separator . First Header | Second Header | Third Header | ------------ | ------------+ | ------------ | Content | **Cell** | Cell | New section | More | Data | .
First Header Second Header Third Header
Content Cell Cell
New section More Data
. Wrappable notation in center-aligned equal-signed separator . First Header | Second Header | Third Header | ============ | :==========:+ | -----------: | Content | **Cell** | Cell | New section | More | Data | .
First Header Second Header Third Header
Content Cell Cell
New section More Data
. Invalid characters in separator . | | Grouping | | ------------ | ------------- | -----------* | Content | **Cell** | Cell | New section | More | Data | .

| | Grouping | | ------------ | ------------- | -----------* | Content | Cell | Cell | New section | More | Data |

. > Requirement 3: Cell content must be on one line only > Requirement 4: Columns are separated by | > Requirement 5: The first line of the table, and the alignment/divider line, must start at the beginning of the line Multiple table headers and one possible separator . | | Grouping | | | | | Grouping 2 | First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | **Cell** | Cell | New section | More | Data | .
Grouping
Grouping 2
First Header Second Header Third Header
Content Cell Cell
New section More Data
. Multiple table headers and multiple possible separators . | | Grouping | | | | | Grouping 2 | First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | ------------ | ------------: | ------------ | Content | **Cell** | Cell | New section | More | Data | .
Grouping
Grouping 2
First Header Second Header Third Header
------------ ------------: ------------
Content Cell Cell
New section More Data
. Multiple table headers but no possible separator . | | Grouping | | | | | Grouping 2 | First Header | Second Header | Third Header | ------------ | ------------- | -----------* | Content | **Cell** | Cell | New section | More | Data | .

| | Grouping | | | | | Grouping 2 | First Header | Second Header | Third Header | ------------ | ------------- | -----------* | Content | Cell | Cell | New section | More | Data |

. > Note 1: It is optional whether you have | characters at the beginning and end of lines. > Note 2: The “separator” line uses `----` or `====` to indicate the line between a header and cell. The length of the line doesn’t matter, but must have at least one character per cell. Invalid separator for containing no minus or equal signs . First Header | Second Header | Third Header | ============ | ::+ | -----------: | Content | **Cell** | Cell | New section | More | Data | .

First Header | Second Header | Third Header | ============ | ::+ | -----------: | Content | Cell | Cell | New section | More | Data |

. > Note 3: To set alignment, you can use a colon to designate left or right alignment, or a colon at each end to designate center alignment, as above. If no colon is present, the default alignment of your system is selected (left in most cases). If the separator line ends with +, then cells in that column will be wrapped when exporting to LaTeX if they are long enough. > Note 4: To indicate that a cell should span multiple columns, then simply add additional pipes (`|`) at the end of the cell, as shown in the example. If the cell in question is at the end of the row, then of course that means that pipes are not optional at the end of that row…. The number of pipes equals the number of columns the cell should span. Multiple columns spanned, without leading pipes . | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | .
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell
. Multiple columns spanned, with some leading pipes . | | Grouping || ------------ | :-----------: | -----------: | | *Long Cell* || | ||| Cell | .
Grouping
Long Cell
Cell
. > Note 5: You can use normal Markdown markup within the table cells. > Note 6: Captions are optional, but if present must be at the beginning of the line immediately preceding or following the table, start with `[`, and end with `]`. If you have a caption before and after the table, only the first match will be used. Caption recognized prior to table row . | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | [ | | ] .
| |
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell
. Prefer caption at first line than that at last line . [Prototype table] | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | [Prototype table caption] .
Prototype table
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell

[Prototype table caption]

. > Note 7: If you have a caption, you can also have a label, allowing you to create anchors pointing to the table. If there is no label, then the caption acts as the label Caption with label appended . [Prototype table][label1] | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | [Prototype table caption][label2] .
Prototype table
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell

[Prototype table caption][label2]

. > Note 8: Cells can be empty. Assumed must with pipe characters on its both side Empty table cells at headers and data rows . | | || | | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | || | | | Cell | [Prototype table] .
Prototype table
Second Header Third Header
Content
Cell
. > Note 9: You can create multiple tags (for HTML) within a table by having a single empty line between rows of the table. This allows your CSS to place horizontal borders to emphasize different sections of the table. This feature doesn’t work in all output formats (e.g. RTF and OpenDocument). Empty line to divide two table body . | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | New section | More | Data | And more | With an escaped '\|' || [Prototype table] .
Prototype table
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell
New section More Data
And more With an escaped '|'
. Empty line disallowed between separator and data rows . | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | New section | More | Data | And more | With an escaped '\|' || [Prototype table] .
Grouping
First Header Second Header Third Header

Content | Long Cell || Content | Cell | Cell |

New section | More | Data | And more | With an escaped '|' || [Prototype table]

. Multiple empty lines to end the table . | | Grouping || First Header | Second Header | Third Header | ------------ | :-----------: | -----------: | Content | *Long Cell* || Content | **Cell** | Cell | New section | More | Data | And more | With an escaped '\|' || [Prototype table] .
Grouping
First Header Second Header Third Header
Content Long Cell
Content Cell Cell

New section | More | Data | And more | With an escaped '|' || [Prototype table]

.