Tables
Alignment, spans, multi-line cells, ragged rows and the pipe rules that decide whether a table exists at all.
Generated from resources/examples/edge-cases/ and resources/examples/core.md - edit the cases there, not here. Each case links the conformance fixture it produces.
An indented row after a table continues it
1 conformance fixture
A body row indented past the table base still continues the table.
|= a |
|b|
|c|<table>
<thead>
<tr><th scope="col">a</th></tr>
</thead>
<tbody>
<tr><td>b</td></tr>
<tr><td>c</td></tr>
</tbody>
</table>An indented continuation row continues the table above
3 conformance fixtures
Indentation does not change what a line is (rule A, markup-carve/carve#3885), so a + continuation row (PART 9 §5 T6) written past the table's column joins the row above, as an indented | row already continues the table (markup-carve/carve#4161).
| h |
| v |
+ text |<table>
<tbody>
<tr><td>h</td></tr>
<tr><td>v text</td></tr>
</tbody>
</table>The same holds when only the continuation row is indented, and inside a list item.
| v |
+ t |
- | a |
+ b |<table>
<tbody>
<tr><td>v t</td></tr>
</tbody>
</table>
<ul>
<li>
<table>
<tbody>
<tr><td>a b</td></tr>
</tbody>
</table>
</li>
</ul>A blank line still ends the table, so the indented row after it is a paragraph.
| a |
+ b |<table>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>
<p>+ b |</p>Escaped table hyphens stay literal
1 conformance fixture
Escaped hyphens in a data cell do not form a typographic dash.
|a|b|
|---|---|
|\-\-\-|x|<table>
<thead>
<tr><th scope="col">a</th><th scope="col">b</th></tr>
</thead>
<tbody>
<tr><td>---</td><td>x</td></tr>
</tbody>
</table>Escaped hyphen run in a table cell
1 conformance fixture
Escapes keep a literal hyphen run in a table cell from becoming smart punctuation.
|= a |= b |
| \-\-\- | x |<table>
<thead>
<tr><th scope="col">a</th><th scope="col">b</th></tr>
</thead>
<tbody>
<tr><td>---</td><td>x</td></tr>
</tbody>
</table>A head-row alignment marker sets the whole column
2 conformance fixtures
CARVE-P12-039 (markup-carve/carve#2978 Q14): a head-row alignment marker sets the whole column and wins over a delimiter colon. A body-cell marker overrides only its own cell. Columns without a head marker keep delimiter alignment.
|={>} a |= b |
|:-- |:-- |
| 1 | 2 |<table>
<thead>
<tr><th scope="col" style="text-align: right;">a</th><th scope="col" style="text-align: left;">b</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">1</td><td style="text-align: left;">2</td></tr>
</tbody>
</table>|={~} a |= b |
|--: |:-- |
| 1 |{>} 2 |
| 3 | 4 |<table>
<thead>
<tr><th scope="col" style="text-align: center;">a</th><th scope="col" style="text-align: left;">b</th></tr>
</thead>
<tbody>
<tr><td style="text-align: center;">1</td><td style="text-align: right;">2</td></tr>
<tr><td style="text-align: center;">3</td><td style="text-align: left;">4</td></tr>
</tbody>
</table>Table content parses inline markup
2 conformance fixtures
A leading = opens a data cell here. The =hot= inside it is a highlight.
|=hot= |<table>
<tbody>
<tr><td><mark>hot</mark></td></tr>
</tbody>
</table>|=warm= |<table>
<tbody>
<tr><td><mark>warm</mark></td></tr>
</tbody>
</table>Table spans keep alignment defaults in physical columns
23 conformance fixtures
659-table-spans-keep-alignment-defaults-in-physical-columns659-table-spans-keep-alignment-defaults-in-physical-columns-2659-table-spans-keep-alignment-defaults-in-physical-columns-3659-table-spans-keep-alignment-defaults-in-physical-columns-4659-table-spans-keep-alignment-defaults-in-physical-columns-5659-table-spans-keep-alignment-defaults-in-physical-columns-6659-table-spans-keep-alignment-defaults-in-physical-columns-7659-table-spans-keep-alignment-defaults-in-physical-columns-8659-table-spans-keep-alignment-defaults-in-physical-columns-9659-table-spans-keep-alignment-defaults-in-physical-columns-10659-table-spans-keep-alignment-defaults-in-physical-columns-11659-table-spans-keep-alignment-defaults-in-physical-columns-12659-table-spans-keep-alignment-defaults-in-physical-columns-13659-table-spans-keep-alignment-defaults-in-physical-columns-14659-table-spans-keep-alignment-defaults-in-physical-columns-15659-table-spans-keep-alignment-defaults-in-physical-columns-16659-table-spans-keep-alignment-defaults-in-physical-columns-17659-table-spans-keep-alignment-defaults-in-physical-columns-18659-table-spans-keep-alignment-defaults-in-physical-columns-19659-table-spans-keep-alignment-defaults-in-physical-columns-20659-table-spans-keep-alignment-defaults-in-physical-columns-21659-table-spans-keep-alignment-defaults-in-physical-columns-22659-table-spans-keep-alignment-defaults-in-physical-columns-23
A lone < or ^ spans in every space-padding form. Alignment with < requires content after its terminating space.
|a| <|<table>
<tbody>
<tr><td colspan="2">a</td></tr>
</tbody>
</table>The = kind marker makes a header cell. Escape a literal < or ^ after it so the whole cell does not become a span marker.
|a|= \< |
|b|= \^ |<table>
<tbody>
<tr><td>a</td><th scope="row"><</th></tr>
<tr><td>b</td><th scope="row">^</th></tr>
</tbody>
</table>A merged header's marker sets a default only for its starting column. The covered column remains independent in later rows.
|={>} Wide|<|={~} Last|
|a|b|c|<table>
<thead>
<tr><th scope="col" colspan="2" style="text-align: right;">Wide</th><th scope="col" style="text-align: center;">Last</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">a</td><td>b</td><td style="text-align: center;">c</td></tr>
</tbody>
</table>A delimiter row can set the covered column independently. The right marker on the merged head cell overrides the delimiter only in its starting column.
|={>} Wide |={<} < |={~} Last |
|a|b|c|<table>
<thead>
<tr><th scope="col" colspan="2" style="text-align: right;">Wide</th><th scope="col" style="text-align: center;">Last</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">a</td><td style="text-align: left;">b</td><td style="text-align: center;">c</td></tr>
</tbody>
</table>Promoting a plain-pipe row with header-rows changes its HTML cell kind, without promoting its per-cell alignment markers into column defaults.
{header-rows=1}
|{>} Wide|<|{~} Last|
|a|b|c|<table>
<thead>
<tr><th scope="col" colspan="2" style="text-align: right;">Wide</th><th scope="col" style="text-align: center;">Last</th></tr>
</thead>
<tbody>
<tr><td>a</td><td>b</td><td>c</td></tr>
</tbody>
</table>Two consecutive span markers extend the aligned origin across three columns.
|{<} Wide|<|<|{~} Last|
|a|b|c|d|<table>
<tbody>
<tr><td colspan="3" style="text-align: left;">Wide</td><td style="text-align: center;">Last</td></tr>
<tr><td>a</td><td>b</td><td>c</td><td>d</td></tr>
</tbody>
</table>A vertical marker before < makes it literal cell content.
|a|{?^} \<|<table>
<tbody>
<tr><td>a</td><td style="vertical-align: top;"><</td></tr>
</tbody>
</table>A covered column can keep a default through aligns.
{aligns=,left,}
|= Wide|<|= Last|
|a|b|c|<table>
<thead>
<tr><th scope="col" colspan="2">Wide</th><th scope="col">Last</th></tr>
</thead>
<tbody>
<tr><td>a</td><td style="text-align: left;">b</td><td>c</td></tr>
</tbody>
</table>An explicit header row keeps column defaults in table attributes.
{header-rows=1 aligns=right,left}
|{>} First|{<} Second|
|a|b|<table>
<thead>
<tr><th scope="col" style="text-align: right;">First</th><th scope="col" style="text-align: left;">Second</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">a</td><td style="text-align: left;">b</td></tr>
</tbody>
</table>A later row of header cells keeps its alignment local after body data.
|={>^} A|<|={~} B|
|a|b|c|
|={<v} D|<|= End|
|d|e|f|<table>
<thead>
<tr><th scope="col" colspan="2" style="text-align: right; vertical-align: top;">A</th><th scope="col" style="text-align: center;">B</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right; vertical-align: top;">a</td><td>b</td><td style="text-align: center;">c</td></tr>
<tr><th scope="row" colspan="2" style="text-align: left; vertical-align: bottom;">D</th><th scope="row" style="text-align: center;">End</th></tr>
<tr><td style="text-align: right; vertical-align: top;">d</td><td>e</td><td style="text-align: center;">f</td></tr>
</tbody>
</table>An all-header row after body data stays in tbody without a thead, and its alignments stay local.
|a|b|
|={>} X|={~} Y|
|c|d|<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><th scope="row" style="text-align: right;">X</th><th scope="row" style="text-align: center;">Y</th></tr>
<tr><td>c</td><td>d</td></tr>
</tbody>
</table>|a|<|<table>
<tbody>
<tr><td colspan="2">a</td></tr>
</tbody>
</table>|a| <|<table>
<tbody>
<tr><td colspan="2">a</td></tr>
</tbody>
</table>|a|< |<table>
<tbody>
<tr><td colspan="2">a</td></tr>
</tbody>
</table>|a| < |<table>
<tbody>
<tr><td colspan="2">a</td></tr>
</tbody>
</table>|a|b|
|^|^|<table>
<tbody>
<tr><td rowspan="2">a</td><td rowspan="2">b</td></tr>
<tr></tr>
</tbody>
</table>|a|b|
|^| ^|<table>
<tbody>
<tr><td rowspan="2">a</td><td rowspan="2">b</td></tr>
<tr></tr>
</tbody>
</table>|a|b|
|^|^ |<table>
<tbody>
<tr><td rowspan="2">a</td><td rowspan="2">b</td></tr>
<tr></tr>
</tbody>
</table>|a|b|
|^| ^ |<table>
<tbody>
<tr><td rowspan="2">a</td><td rowspan="2">b</td></tr>
<tr></tr>
</tbody>
</table>|= \< |<table>
<thead>
<tr><th scope="col"><</th></tr>
</thead>
</table>|{~} |<table>
<tbody>
<tr><td style="text-align: center;"></td></tr>
</tbody>
</table>|{>} |<table>
<tbody>
<tr><td style="text-align: right;"></td></tr>
</tbody>
</table>|{~ .x} |<table>
<tbody>
<tr><td class="x" style="text-align: center;"></td></tr>
</tbody>
</table>Table without alignment
1 conformance fixture
|= Name |= Age |
| Alice | 28 |
| Bob | 34 |<table>
<thead>
<tr><th scope="col">Name</th><th scope="col">Age</th></tr>
</thead>
<tbody>
<tr><td>Alice</td><td>28</td></tr>
<tr><td>Bob</td><td>34</td></tr>
</tbody>
</table>Table alignment with colspan
1 conformance fixture
|={>} Category |= Item |= Price |
| Fruit | Apple | $1 |
| Total | < | $1.50 |<table>
<thead>
<tr><th scope="col" style="text-align: right;">Category</th><th scope="col">Item</th><th scope="col">Price</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">Fruit</td><td>Apple</td><td>$1</td></tr>
<tr><td colspan="2" style="text-align: right;">Total</td><td>$1.50</td></tr>
</tbody>
</table>Table doubled alignment marker
1 conformance fixture
An alignment run is accepted as a unit. A duplicate horizontal axis makes the whole run invalid, so |=<< keeps both < characters as visible content rather than consuming a valid prefix. The kind marker falls with it: T11's run is atomic, and with no space to end it the = is content too, so the cell is an ordinary data cell whose text begins with =<<. The second cell, spelled with its space, is still a header -- and one header cell among data cells is a row header rather than a thead.
|=<< Note |= Plain |
| a | b |<table>
<tbody>
<tr><td>=<< Note</td><th scope="row">Plain</th></tr>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>Table columns carry alignment, vertical alignment and widths
1 conformance fixture
A preceding table attribute line supplies positional column defaults even when the table has no header row. Empty entries are unset. Source widths are percentages; the exchange AST stores the corresponding fractions. Cell-local markers remain more specific than these defaults.
{aligns="right,,center" valigns="top,middle,bottom" widths="25,50,25"}
| A | B | C |
| D | E | F |<table>
<colgroup>
<col style="width: 25%;">
<col style="width: 50%;">
<col style="width: 25%;">
</colgroup>
<tbody>
<tr><td style="text-align: right; vertical-align: top;">A</td><td style="vertical-align: middle;">B</td><td style="text-align: center; vertical-align: bottom;">C</td></tr>
<tr><td style="text-align: right; vertical-align: top;">D</td><td style="vertical-align: middle;">E</td><td style="text-align: center; vertical-align: bottom;">F</td></tr>
</tbody>
</table>A table alignment run carries two independent axes
1 conformance fixture
The horizontal marker comes first and the optional vertical marker follows it. Rendered CSS likewise writes text-align before vertical-align. A head-row header-cell run supplies column defaults; a later row-header run or a body-cell run overrides only that cell.
|={~} Item |={>^} Qty |
| Apple | 12 |
| Subtotal |{<v} 12 |<table>
<thead>
<tr><th scope="col" style="text-align: center;">Item</th><th scope="col" style="text-align: right; vertical-align: top;">Qty</th></tr>
</thead>
<tbody>
<tr><td style="text-align: center;">Apple</td><td style="text-align: right; vertical-align: top;">12</td></tr>
<tr><td style="text-align: center;">Subtotal</td><td style="text-align: left; vertical-align: bottom;">12</td></tr>
</tbody>
</table>A vertical table marker needs a horizontal partner
1 conformance fixture
Horizontal alignment may stand alone. Vertical alignment is meaningful only as the second axis of a paired run, so a lone ^ or v stays visible instead of silently changing layout. Axes are always written horizontal then vertical; vertical-first runs stay visible rather than switching the order. A rejected run takes the kind marker with it (T11): only the paired cell keeps its =, and the rest read as data cells whose text begins with =.
|=^ Top |=v Bottom |={<^} Paired |=v> Reverse |=~> Middle |
| a | b | c | d | e |<table>
<tbody>
<tr><td>=^ Top</td><td>=v Bottom</td><th scope="row" style="text-align: left; vertical-align: top;">Paired</th><td>=v> Reverse</td><td>=~> Middle</td></tr>
<tr><td>a</td><td>b</td><td>c</td><td>d</td><td>e</td></tr>
</tbody>
</table>A table cell can inherit horizontal alignment
1 conformance fixture
? in the horizontal position preserves the column's horizontal alignment while supplying a cell-level vertical alignment. It is valid only as the first marker of ?^, ?~, or ?v; every other use stays visible content.
|={>^} Name |= Value |
|{?v} Bottom |{?~} Middle |
|{?^} Top | plain |
|? lone |v? reversed |
|?< wrong |^< axes |<table>
<thead>
<tr><th scope="col" style="text-align: right; vertical-align: top;">Name</th><th scope="col">Value</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right; vertical-align: bottom;">Bottom</td><td style="vertical-align: middle;">Middle</td></tr>
<tr><td style="text-align: right; vertical-align: top;">Top</td><td>plain</td></tr>
<tr><td style="text-align: right; vertical-align: top;">? lone</td><td>v? reversed</td></tr>
<tr><td style="text-align: right; vertical-align: top;">?< wrong</td><td>^< axes</td></tr>
</tbody>
</table>Pipe tables can state head and foot row counts
1 conformance fixture
The explicit counts partition the rows. Rows in the explicit head are promoted to column headers; a native |= cell in the body remains a row header.
{header-rows=2 footer-rows=1}
| Region | Q1 |
| Detail | EUR |
|= North | 11 |
| All | 33 |<table>
<thead>
<tr><th scope="col">Region</th><th scope="col">Q1</th></tr>
<tr><th scope="col">Detail</th><th scope="col">EUR</th></tr>
</thead>
<tbody>
<tr><th scope="row">North</th><td>11</td></tr>
</tbody>
<tfoot>
<tr><td>All</td><td>33</td></tr>
</tfoot>
</table>CSV and TSV table bodies
12 conformance fixtures
617-csv-and-tsv-table-bodies617-csv-and-tsv-table-bodies-2617-csv-and-tsv-table-bodies-3617-csv-and-tsv-table-bodies-4617-csv-and-tsv-table-bodies-5617-csv-and-tsv-table-bodies-6617-csv-and-tsv-table-bodies-7617-csv-and-tsv-table-bodies-8617-csv-and-tsv-table-bodies-9617-csv-and-tsv-table-bodies-10617-csv-and-tsv-table-bodies-11617-csv-and-tsv-table-bodies-12
{table} turns a csv or tsv fence into a table. Without the flag, the fence remains a code sample. Fields are plain text, including Carve punctuation.
{table aligns=left,right,right}
```csv
Item,Qty,Price
Apple,12,0.40
"Pear, green",3,0.55
```
^ Stock on hand<table>
<caption>Stock on hand</caption>
<thead>
<tr><th scope="col" style="text-align: left;">Item</th><th scope="col" style="text-align: right;">Qty</th><th scope="col" style="text-align: right;">Price</th></tr>
</thead>
<tbody>
<tr><td style="text-align: left;">Apple</td><td style="text-align: right;">12</td><td style="text-align: right;">0.40</td></tr>
<tr><td style="text-align: left;">Pear, green</td><td style="text-align: right;">3</td><td style="text-align: right;">0.55</td></tr>
</tbody>
</table>header-rows=0 keeps every row in the body. The literal ^ and <x> fields are ordinary text cells.
{table header-rows=0}
```tsv
A B
^ <x>
```<table>
<tbody>
<tr><td>A</td><td>B</td></tr>
<tr><td>^</td><td><x></td></tr>
</tbody>
</table>```csv
a,b
```<pre><code class="language-csv">a,b
</code></pre>A quoted CSV field can contain a newline; the newline stays inside one cell.
{table}
```csv
Name,Note
A,"one
two"
```<table>
<thead>
<tr><th scope="col">Name</th><th scope="col">Note</th></tr>
</thead>
<tbody>
<tr><td>A</td><td>one
two</td></tr>
</tbody>
</table>A footer does not displace the default header.
{table footer-rows=1}
```csv
Item,Qty
Apple,2
Total,2
```<table>
<thead>
<tr><th scope="col">Item</th><th scope="col">Qty</th></tr>
</thead>
<tbody>
<tr><td>Apple</td><td>2</td></tr>
</tbody>
<tfoot>
<tr><td>Total</td><td>2</td></tr>
</tfoot>
</table>An empty delimited fence makes an empty table.
{table}
```csv
```<table>
</table>Malformed quoted input remains code, with the authored table attribute still present.
{table}
```csv
"bad
```<pre table=""><code class="language-csv">"bad
</code></pre>Rows wider than the header stay intact; short rows gain empty cells.
{table}
```csv
a,b
1
2,3,4
```<table>
<thead>
<tr><th scope="col">a</th><th scope="col">b</th><th scope="col"></th></tr>
</thead>
<tbody>
<tr><td>1</td><td></td><td></td></tr>
<tr><td>2</td><td>3</td><td>4</td></tr>
</tbody>
</table>A blank final record remains a row before the final separator.
{table}
```csv
a
```<table>
<thead>
<tr><th scope="col">a</th></tr>
</thead>
<tbody>
<tr><td></td></tr>
</tbody>
</table>A footer can consume the only row.
{table footer-rows=1}
```csv
last
```<table>
<tfoot>
<tr><td>last</td></tr>
</tfoot>
</table>A quote inside an unquoted field leaves the fence as code.
{table}
```csv
a"b,c
```<pre table=""><code class="language-csv">a"b,c
</code></pre>Text after a closing quote also leaves the fence as code.
{table}
```csv
"a" ,b
```<pre table=""><code class="language-csv">"a" ,b
</code></pre>Table cell escaped pipe
1 conformance fixture
A backslash-escaped pipe is literal content and does not split the cell.
|= A |= B |
| x \| y | z |<table>
<thead>
<tr><th scope="col">A</th><th scope="col">B</th></tr>
</thead>
<tbody>
<tr><td>x | y</td><td>z</td></tr>
</tbody>
</table>Table cell pipe inside code span
1 conformance fixture
A pipe inside a code span is protected and does not split the cell.
|= A |= B |
| `a|b` | z |<table>
<thead>
<tr><th scope="col">A</th><th scope="col">B</th></tr>
</thead>
<tbody>
<tr><td><code>a|b</code></td><td>z</td></tr>
</tbody>
</table>An unclosed verbatim run in a row stops at the closing pipe
6 conformance fixtures
328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe-2328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe-3328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe-4328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe-5328-an-unclosed-verbatim-run-in-a-row-stops-at-the-closing-pipe-6
A | inside an open code span is cell content, not a separator — that is what lets | a `x|` | b | be two cells. An unclosed run has no such reach: the row's own closing pipe still closes the row, and the run stops there (markup-carve/carve#1284).
| a `b | c d |<table>
<tbody>
<tr><td>a <code>b | c d</code></td></tr>
</tbody>
</table>It is a real row, so the table continues below it:
| a `b | c d |
| e | f |<table>
<tbody>
<tr><td>a <code>b | c d</code></td></tr>
<tr><td>e</td><td>f</td></tr>
</tbody>
</table>The same under a header row, since nothing here depends on the row's position:
|= h |
| a `b | c |<table>
<thead>
<tr><th scope="col">h</th></tr>
</thead>
<tbody>
<tr><td>a <code>b | c</code></td></tr>
</tbody>
</table>The run's delimiter length does not matter — an unclosed double-backtick run behaves the same:
| a ``b | c |<table>
<tbody>
<tr><td>a <code>b | c</code></td></tr>
</tbody>
</table>The control, and the reason this is a narrow rule rather than "pipes always split": a run that DOES close still hides the pipes inside it, so this row has two cells and not three.
| a `x|` | b |<table>
<tbody>
<tr><td>a <code>x|</code></td><td>b</td></tr>
</tbody>
</table>And a line with content dangling after its last pipe is still prose, open run or not — the closing-pipe requirement is unchanged.
| a | b<p>| a | b</p>A continuation row's open run, and an escaped closing pipe
5 conformance fixtures
333-a-continuation-row-s-open-run-and-an-escaped-closing-pipe333-a-continuation-row-s-open-run-and-an-escaped-closing-pipe-2333-a-continuation-row-s-open-run-and-an-escaped-closing-pipe-3333-a-continuation-row-s-open-run-and-an-escaped-closing-pipe-4333-a-continuation-row-s-open-run-and-an-escaped-closing-pipe-5
Two shapes sit either side of the row terminator, and neither was settled by the rule that an unclosed run stops at the row's closing pipe (markup-carve/carve#1293).
A + continuation extends the cell, so the block an unclosed run reaches the end of is that whole cell, continuation included. The run therefore spans the row boundary and closes on the continuation row:
| a `b |
+ c` |<table>
<tbody>
<tr><td>a <code>b c</code></td></tr>
</tbody>
</table>An escaped closing pipe is still an escape. The row closes there, because the line ends in a pipe; what the escape decides is what the CELL holds, which is a literal pipe and not an orphaned backslash:
| a b \|<table>
<tbody>
<tr><td>a b |</td></tr>
</tbody>
</table>The control that makes the asymmetry visible, and the argument that settled it: every reader already honors \| mid-cell. Reading the escape at every position except the last one is a position exception with nothing behind it, and \| is the only way to put a literal pipe in a cell:
| a \| b | c |<table>
<tbody>
<tr><td>a | b</td><td>c</td></tr>
</tbody>
</table>The continuation is cut into cells while that run is still open, which is what keeps its own pipes content. Splitting it with a fresh scanner cuts inside the run and leaves a segment with no column to join, and a dropped segment is content loss rather than a second answer:
| a `b |
+ c | d` |<table>
<tbody>
<tr><td>a <code>b c | d</code></td></tr>
</tbody>
</table>The open run belongs to ONE column, and a continuation joins per column, so the columns before it are still cut at their own pipes. Carrying the run across the whole continuation line instead swallows those separators and pushes the text into the wrong cell, which leaves the run's own cell holding an empty <code></code> - the artifact this ruling rejects, produced from the other direction:
| x | a `b |
+ y | c` |<table>
<tbody>
<tr><td>x y</td><td>a <code>b c</code></td></tr>
</tbody>
</table>An attributed cell keeps its attributes and its literal marker
2 conformance fixtures
PART 9 §5 T4 says a cell carrying attributes is never a bare span marker, and that its content is literal even when the content is just ^ or <. It says nothing about the attributes, which stay on the cell that carries them: the block is what makes the cell ordinary content in the first place, so reading it back out as text would leave the sentence with nothing to act on (markup-carve/carve#1463).
| a | b |
|{.x} < |{.y} ^ |<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td class="x"><</td><td class="y">^</td></tr>
</tbody>
</table>The contrast, and the reason the rule is worth pinning: WITHOUT the attributes the same character is a span marker and the cell beside it grows.
| a | b |
| c | < |<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td colspan="2">c</td></tr>
</tbody>
</table>Table stacked rowspan
1 conformance fixture
Consecutive ^ cells extend the same origin cell; two stacked ^ markers produce rowspan="3".
|= Tier |= User |
| Gold | Ann |
| ^ | Bo |
| ^ | Cy |<table>
<thead>
<tr><th scope="col">Tier</th><th scope="col">User</th></tr>
</thead>
<tbody>
<tr><td rowspan="3">Gold</td><td>Ann</td></tr>
<tr><td>Bo</td></tr>
<tr><td>Cy</td></tr>
</tbody>
</table>Table rowspan with multi-line content
3 conformance fixtures
A + continuation before a ^ rowspan extends the spanned cell.
|= Category |= Item |
| Fresh Fruits | Apple |
+ from local | |
+ farms | |
| ^ | Banana |<table>
<thead>
<tr><th scope="col">Category</th><th scope="col">Item</th></tr>
</thead>
<tbody>
<tr><td rowspan="2">Fresh Fruits from local farms</td><td>Apple</td></tr>
<tr><td>Banana</td></tr>
</tbody>
</table>A continuation row after the ^ row joins the row above it, and in a spanned column the cell above is the spanning cell. So more joins a, while d joins c in the column the span does not cover (§5 T6).
| a | b |
| ^ | c |
+ more | d |<table>
<tbody>
<tr><td rowspan="2">a more</td><td>b</td></tr>
<tr><td>c d</td></tr>
</tbody>
</table>A continuation row before the ^ row joins the origin row, which the ^ row then extends. Its second cell joins b, not c.
| a | b |
+ more | d |
| ^ | c |<table>
<tbody>
<tr><td rowspan="2">a more</td><td>b d</td></tr>
<tr><td>c</td></tr>
</tbody>
</table>Superscript in a table cell
2 conformance fixtures
Superscript in a cell uses the braced form {^…^}. A lone ^ as the sole cell content is a rowspan marker; any other bare ^ in a cell is literal text.
| Value |
| {^2^} |<table>
<tbody>
<tr><td>Value</td></tr>
<tr><td><sup>2</sup></td></tr>
</tbody>
</table>| Value |
| ^2^ |<table>
<tbody>
<tr><td>Value</td></tr>
<tr><td>^2^</td></tr>
</tbody>
</table>Table span marker in first column
1 conformance fixture
A span marker (^ rowspan / < colspan) must be the whole cell. In the first column a < (or in the first row a ^) has nothing to merge into, so it renders as an empty cell rather than being dropped.
|= < |= b |
| c | d |<table>
<thead>
<tr><th scope="col"></th><th scope="col">b</th></tr>
</thead>
<tbody>
<tr><td>c</td><td>d</td></tr>
</tbody>
</table>Table cell attributes
1 conformance fixture
A {…} attribute block glued to a cell (no space) sets that cell's attributes; the rest, after optional whitespace, is the cell content. A space before the brace keeps it literal, and a cell carrying attributes is never a bare span marker. The block binds after the cell's kind and alignment markers, so on a cell with no marker it sits directly against the opening |.
|={.highlight} Total |= 99 |
| a | b |<table>
<thead>
<tr><th scope="col" class="highlight">Total</th><th scope="col">99</th></tr>
</thead>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>Cell attributes bind after the kind and alignment markers
6 conformance fixtures
319-cell-attributes-bind-after-the-kind-and-alignment-markers319-cell-attributes-bind-after-the-kind-and-alignment-markers-2319-cell-attributes-bind-after-the-kind-and-alignment-markers-3319-cell-attributes-bind-after-the-kind-and-alignment-markers-4319-cell-attributes-bind-after-the-kind-and-alignment-markers-5319-cell-attributes-bind-after-the-kind-and-alignment-markers-6
A cell's {…} attribute block attaches AFTER the kind marker = and after the alignment marker, in every cell. The block is glued to the marker run where the cell has one and to the opening | where it has none; a space in front of it still keeps it literal. This is what makes an attributed HEADER cell expressible: with the block bound ahead of the =, the only available shape is |{#x}=R|, which reads as a data cell whose content starts with =.
|={.total} Total |= 99 |
| a | b |<table>
<thead>
<tr><th scope="col" class="total">Total</th><th scope="col">99</th></tr>
</thead>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>Both markers may precede the block. The kind marker comes first, then the alignment marker, then the attributes; a native alignment marker on a header cell still sets the whole column's alignment.
|={~ #score} Score |
| 9 |<table>
<thead>
<tr><th scope="col" id="score" style="text-align: center;">Score</th></tr>
</thead>
<tbody>
<tr><td style="text-align: center;">9</td></tr>
</tbody>
</table>On a data cell the alignment marker likewise comes first, and the computed alignment composes with the authored block rather than replacing it.
|= Item |= Cost |
| Pen |{> .num} 9 |<table>
<thead>
<tr><th scope="col">Item</th><th scope="col">Cost</th></tr>
</thead>
<tbody>
<tr><td>Pen</td><td class="num" style="text-align: right;">9</td></tr>
</tbody>
</table>The other order is no longer a marker position. A < written AFTER the attribute block is ordinary content, so the cell carries the attributes and is not aligned. This is the released spelling that changes meaning, and it reinterprets rather than erroring. The block is followed by the space that ends the marker run (T11); without it the braces would be content too.
|{#x} < content |<table>
<tbody>
<tr><td id="x">< content</td></tr>
</tbody>
</table>The shape that used to be the only candidate for an attributed header cell is still a data cell, which is the ambiguity the rule removes: the = is content because the block ahead of it already committed the cell.
|{#x} =R |<table>
<tbody>
<tr><td id="x">=R</td></tr>
</tbody>
</table>Row attributes do not move. They stay glued to the row's closing |, and they compose with cell attributes written in the new position.
|={< .h} Name |={> .c} Score |{.head}
| Ann |{> .num} 9 |{.win}<table>
<thead>
<tr class="head"><th scope="col" class="h" style="text-align: left;">Name</th><th scope="col" class="c" style="text-align: right;">Score</th></tr>
</thead>
<tbody>
<tr class="win"><td style="text-align: left;">Ann</td><td class="num" style="text-align: right;">9</td></tr>
</tbody>
</table>A table cell's marker run ends at a space
5 conformance fixtures
A cell's marker run is the kind marker =, the alignment run and the attribute block, in T10's order, and PART 9 §5 T11 gives it the terminator it never had: a run must be followed by one space. Without that space there is no run, and every character of it is content. The alignment run already worked this way; the kind marker and the attribute block did not, so a cell whose content began with = lost it to a marker nobody wrote.
|=hot= is the reading |<table>
<tbody>
<tr><td><mark>hot</mark> is the reading</td></tr>
</tbody>
</table>The header cell is the padded spelling, and it is what a canonical writer already emits (PART 11 §6e), so a formatted document needs no migration:
|= Item |= Qty |
| Pen | 9 |<table>
<thead>
<tr><th scope="col">Item</th><th scope="col">Qty</th></tr>
</thead>
<tbody>
<tr><td>Pen</td><td>9</td></tr>
</tbody>
</table>An attribute block is part of the run and takes the same space. Glued to the content it is not a block at all, which is why the braces reach the output:
|{.total} 99 |
|{.total}99 |<table>
<tbody>
<tr><td class="total">99</td></tr>
<tr><td>{.total}99</td></tr>
</tbody>
</table>THE CLOSING PIPE IS NOT A TERMINATOR, so an empty marked cell takes its space too. A cell with NO run is the one shape this clause leaves alone: |a| still means what it meant, because there is no marker for the space to end.
|= |a|
|=|a|<table>
<tbody>
<tr><th scope="row"></th><td>a</td></tr>
<tr><td>=</td><td>a</td></tr>
</tbody>
</table>An escape reaches the reading a space cannot spell, unchanged by this clause:
|\= a |<table>
<tbody>
<tr><td>= a</td></tr>
</tbody>
</table>Table row attributes
1 conformance fixture
An attribute block glued to a row's closing | sets that row's <tr> attributes - the row-level twin of a cell's attribute block, in a different position: a row's follows the row's last |, a cell's follows the cell's markers. It applies to a header or a body row and composes with the GFM delimiter row.
|= Name |= Score |{.head}
| Ann | 9 |{.win}<table>
<thead>
<tr class="head"><th scope="col">Name</th><th scope="col">Score</th></tr>
</thead>
<tbody>
<tr class="win"><td>Ann</td><td>9</td></tr>
</tbody>
</table>Table header cell rowspan
1 conformance fixture
A ^ rowspan marker extends the cell above it even across the header/body boundary: a header cell can span into the body rows below, rendering as <th scope="col" rowspan="N">.
|= H |= G |
| ^ | b |
| ^ | c |<table>
<tbody>
<tr><th scope="col" rowspan="3">H</th><th scope="col">G</th></tr>
<tr><td>b</td></tr>
<tr><td>c</td></tr>
</tbody>
</table>An explicit table head span keeps one row group
1 conformance fixture
When a header cell spans into a body row, the table uses one <tbody> and keeps the cell's header scope.
{header-rows=1}
| H | G |
| ^ | b |<table>
<tbody>
<tr><th scope="col" rowspan="2">H</th><th scope="col">G</th></tr>
<tr><td>b</td></tr>
</tbody>
</table>A table foot span keeps one row group
1 conformance fixture
A body cell spanning into a footer row uses the same single-body layout.
{footer-rows=1}
| a | b |
| ^ | c |<table>
<tbody>
<tr><td rowspan="2">a</td><td>b</td></tr>
<tr><td>c</td></tr>
</tbody>
</table>Blocked span marker renders as empty cell
1 conformance fixture
A span marker merges into the nearest still-available origin: a ^ walks up its column, a < walks left along its row, skipping cells already consumed by another span. When the walk reaches no available cell at all - it runs off the edge of the table - the marker is neither dropped nor left literal: it renders as an EMPTY cell (<td></td>) carrying no content and no span. The first-row ^ / first-column < orphan is one instance (see "Table span marker in first column"); the same rule covers a marker BLOCKED when every cell back to the edge is already consumed.
Here the second body row leads with ^, so the x above it gains rowspan="2". The next cell is <; its only left neighbor (the first column) is now occupied by that rowspan, so the leftward walk runs off the edge with nothing to merge and the < becomes an empty cell. The trailing d follows as usual.
|= A |= B |= C |
| x | y | z |
| ^ | < | d |<table>
<thead>
<tr><th scope="col">A</th><th scope="col">B</th><th scope="col">C</th></tr>
</thead>
<tbody>
<tr><td rowspan="2">x</td><td>y</td><td>z</td></tr>
<tr><td></td><td>d</td></tr>
</tbody>
</table>Colspan marker scans left past a consumed cell
1 conformance fixture
A < does NOT reach past a column another cell's rowspan holds. It widens the cell covering its left neighbor only when that cell starts in the same row; widening anything else would place one cell on top of another, which is not a table HTML can hold (carve#3047).
Here the second body row is | p | ^ | < | e |. The ^ (column 2) continues the rowspan of b directly above it, so b gains rowspan="2" and covers column 2 of this row. The < (column 3) has b as its left neighbor, and b started a row earlier, so the marker is BLOCKED and renders as an empty cell. p keeps one column, and the trailing e follows as a plain cell.
|= p |= q |= r |= s |
| a | b | c | d |
| p | ^ | < | e |<table>
<thead>
<tr><th scope="col">p</th><th scope="col">q</th><th scope="col">r</th><th scope="col">s</th></tr>
</thead>
<tbody>
<tr><td>a</td><td rowspan="2">b</td><td>c</td><td>d</td></tr>
<tr><td>p</td><td></td><td>e</td></tr>
</tbody>
</table>A span never covers another cell
3 conformance fixtures
A marker grows the cell covering its neighbor only when the new cells it would take are free (CARVE-P9-002). A ^ under a cell two columns wide takes the whole two-column strip of its row, so the strip must hold span markers or nothing. In the last row the ^ under spans 4 cells takes the < beside it, which renders nothing, and the row owns no cell of its own.
|= 2-col header|<|= header|
|spans 3 rows|foo|bar|
|^|spans 4 cells|<|
|^|^|<|<table>
<thead>
<tr><th scope="col" colspan="2">2-col header</th><th scope="col">header</th></tr>
</thead>
<tbody>
<tr><td rowspan="3">spans 3 rows</td><td>foo</td><td>bar</td></tr>
<tr><td rowspan="2" colspan="2">spans 4 cells</td></tr>
<tr></tr>
</tbody>
</table>When the strip holds a cell, the ^ is blocked and renders as an empty cell, so a keeps one row and b keeps its place.
| a | < |
| ^ | b |<table>
<tbody>
<tr><td colspan="2">a</td></tr>
<tr><td></td><td>b</td></tr>
</tbody>
</table>A header row is a row in which every cell it owns is a header cell. A span placeholder belongs to the cell covering it, so a < beside a |= cell keeps the row in <thead> (CARVE-P9-006).
|= a |<|= b |
| 1 | 2 | 3 |<table>
<thead>
<tr><th scope="col" colspan="2">a</th><th scope="col">b</th></tr>
</thead>
<tbody>
<tr><td>1</td><td>2</td><td>3</td></tr>
</tbody>
</table>A continuation on a span marker joins the cell the marker resolves into
5 conformance fixtures
594-a-continuation-on-a-span-marker-joins-the-cell-the-marker-resolves-into594-a-continuation-on-a-span-marker-joins-the-cell-the-marker-resolves-into-2594-a-continuation-on-a-span-marker-joins-the-cell-the-marker-resolves-into-3594-a-continuation-on-a-span-marker-joins-the-cell-the-marker-resolves-into-4594-a-continuation-on-a-span-marker-joins-the-cell-the-marker-resolves-into-5
A + fragment on a ^ or < column joins the cell the T5 walk resolves that marker into, in row-major order (T6). On a < that is the cell it widens.
A BLOCKED marker is a cell of its own (T5). It renders no marker, and the fragments on it are its content (markup-carve/carve#3151). A < in the first column has no cell to widen:
| a | b |
| < | c |
+ x | y |<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td>x</td><td>c y</td></tr>
</tbody>
</table>A ^ in the first row has no cell to extend:
| ^ | b |
+ x | y |<table>
<tbody>
<tr><td>x</td><td>b y</td></tr>
</tbody>
</table>A ^ under a cell two columns wide would cover b:
| a | < |
| ^ | b |
+ x | y |<table>
<tbody>
<tr><td colspan="2">a</td></tr>
<tr><td>x</td><td>b y</td></tr>
</tbody>
</table>A < beside a cell that started in an earlier row would cover c:
| a | b |
| ^ | c |
| < | d |
+ x | y |<table>
<tbody>
<tr><td rowspan="2">a</td><td>b</td></tr>
<tr><td>c</td></tr>
<tr><td>x</td><td>d y</td></tr>
</tbody>
</table>A blocked cell is widened like any other, and the < brings its fragment along:
| ^ | < |
+ x | y |<table>
<tbody>
<tr><td colspan="2">x y</td></tr>
</tbody>
</table>A pipe pair with no cell is not a table
1 conformance fixture
This section's name records the reading markup-carve/carve#2879 replaced; the corpus numbering is append-only, so it keeps its name. || has one cell slot between its two pipes, and an empty slot is a cell: the line is a one-row table with one empty data cell (PART 9 §5 T2). The section "An explicitly delimited row of blank cells is a table" carries the full rule.
||<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>A row whose every cell is blank is not a table
7 conformance fixtures
453-a-row-whose-every-cell-is-blank-is-not-a-table453-a-row-whose-every-cell-is-blank-is-not-a-table-2453-a-row-whose-every-cell-is-blank-is-not-a-table-3453-a-row-whose-every-cell-is-blank-is-not-a-table-4453-a-row-whose-every-cell-is-blank-is-not-a-table-5453-a-row-whose-every-cell-is-blank-is-not-a-table-6453-a-row-whose-every-cell-is-blank-is-not-a-table-7
This section's name records the ruling of markup-carve/carve#1950, which markup-carve/carve#2879 replaced; the corpus numbering is append-only, so it keeps its name. An explicitly delimited row is a table row whatever its cells hold (PART 9 §5 T2), so the three rows that ruling turned into paragraphs are tables again. The section "An explicitly delimited row of blank cells is a table" carries the full rule.
Two empty data cells:
|||<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>Padding spaces are not content, so this is the same two-cell row:
| | |<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>An empty header cell is a header-only table, the same way | | is a one-cell data table:
|= |<table>
<thead>
<tr><th scope="col"></th></tr>
</thead>
</table>The controls are unchanged. A row with content:
|a|b|<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>One filled cell beside an empty one:
| a | |<table>
<tbody>
<tr><td>a</td><td></td></tr>
</tbody>
</table>An empty cell carrying an attribute block:
|{.x} |<table>
<tbody>
<tr><td class="x"></td></tr>
</tbody>
</table>An empty cell carrying an alignment run:
|{>} |<table>
<tbody>
<tr><td style="text-align: right;"></td></tr>
</tbody>
</table>An explicitly delimited row of blank cells is a table
36 conformance fixtures
589-an-explicitly-delimited-row-of-blank-cells-is-a-table589-an-explicitly-delimited-row-of-blank-cells-is-a-table-2589-an-explicitly-delimited-row-of-blank-cells-is-a-table-3589-an-explicitly-delimited-row-of-blank-cells-is-a-table-4589-an-explicitly-delimited-row-of-blank-cells-is-a-table-5589-an-explicitly-delimited-row-of-blank-cells-is-a-table-6589-an-explicitly-delimited-row-of-blank-cells-is-a-table-7589-an-explicitly-delimited-row-of-blank-cells-is-a-table-8589-an-explicitly-delimited-row-of-blank-cells-is-a-table-9589-an-explicitly-delimited-row-of-blank-cells-is-a-table-10589-an-explicitly-delimited-row-of-blank-cells-is-a-table-11589-an-explicitly-delimited-row-of-blank-cells-is-a-table-12589-an-explicitly-delimited-row-of-blank-cells-is-a-table-13589-an-explicitly-delimited-row-of-blank-cells-is-a-table-14589-an-explicitly-delimited-row-of-blank-cells-is-a-table-15589-an-explicitly-delimited-row-of-blank-cells-is-a-table-16589-an-explicitly-delimited-row-of-blank-cells-is-a-table-17589-an-explicitly-delimited-row-of-blank-cells-is-a-table-18589-an-explicitly-delimited-row-of-blank-cells-is-a-table-19589-an-explicitly-delimited-row-of-blank-cells-is-a-table-20589-an-explicitly-delimited-row-of-blank-cells-is-a-table-21589-an-explicitly-delimited-row-of-blank-cells-is-a-table-22589-an-explicitly-delimited-row-of-blank-cells-is-a-table-23589-an-explicitly-delimited-row-of-blank-cells-is-a-table-24589-an-explicitly-delimited-row-of-blank-cells-is-a-table-25589-an-explicitly-delimited-row-of-blank-cells-is-a-table-26589-an-explicitly-delimited-row-of-blank-cells-is-a-table-27589-an-explicitly-delimited-row-of-blank-cells-is-a-table-28589-an-explicitly-delimited-row-of-blank-cells-is-a-table-29589-an-explicitly-delimited-row-of-blank-cells-is-a-table-30589-an-explicitly-delimited-row-of-blank-cells-is-a-table-31589-an-explicitly-delimited-row-of-blank-cells-is-a-table-32589-an-explicitly-delimited-row-of-blank-cells-is-a-table-33589-an-explicitly-delimited-row-of-blank-cells-is-a-table-34589-an-explicitly-delimited-row-of-blank-cells-is-a-table-35589-an-explicitly-delimited-row-of-blank-cells-is-a-table-36
A standard row needs an opening pipe, a closing pipe and at least one cell slot between them (PART 9 §5 T2). Empty content fills a slot like any other content, so a row of blank cells opens a table, interrupts a paragraph, and stays a row inside a table, under one predicate (markup-carve/carve#2879). This replaces the all-blank rejection of markup-carve/carve#1950, whose sections 113 and 453 now carry the new expectations. A blank cell is an empty children list; nothing is synthesized to fill it.
One empty data cell, padded and unpadded:
| |<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>||<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>Two empty data cells, and three. Every slot between two delimiters is a cell:
|||<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>| | |<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>||||<table>
<tbody>
<tr><td></td><td></td><td></td></tr>
</tbody>
</table>An empty marked cell keeps the marker run and the space that ends it (T11). |= | is an empty header cell; |=| has no run, so its content is a literal =:
|= |<table>
<thead>
<tr><th scope="col"></th></tr>
</thead>
</table>|=|<table>
<tbody>
<tr><td>=</td></tr>
</tbody>
</table>The alignment run follows the same rule, |> | against |>|:
|{>} |<table>
<tbody>
<tr><td style="text-align: right;"></td></tr>
</tbody>
</table>|>|<table>
<tbody>
<tr><td>></td></tr>
</tbody>
</table>The whole run in its one order, kind, alignment, attributes, then the space:
|={~ .x} |<table>
<thead>
<tr><th scope="col" class="x" style="text-align: center;"></th></tr>
</thead>
</table>A cell attribute block needs the space too. Without it there is no run, and the block is cell content:
|{#x} |<table>
<tbody>
<tr><td id="x"></td></tr>
</tbody>
</table>|{#x}|<table>
<tbody>
<tr><td>{<span class="tag"><strong>#x</strong></span>}</td></tr>
</tbody>
</table>A row attribute block glued to the closing pipe stays on the row, not on the blank cell (T8):
| |{.row}<table>
<tbody>
<tr class="row"><td></td></tr>
</tbody>
</table>A malformed row attribute block leaves content after the last pipe, so the line is prose, as it is for a row with content. A malformed cell attribute block is cell content:
| |{bad!!}<p>| |{bad!!}</p>| {bad!!} |<table>
<tbody>
<tr><td>{bad!!}</td></tr>
</tbody>
</table>A lone pipe has no closing delimiter and no slot, so it stays paragraph text. A missing closer keeps its existing reading, with no blank-row exception:
|<p>|</p>| a | b<p>| a | b</p>Escaped pipes and pipes inside a code span are content, never delimiters (T1). An escaped opener keeps the whole line literal:
| \| |<table>
<tbody>
<tr><td>|</td></tr>
</tbody>
</table>\| |<p>| |</p>| `|` |<table>
<tbody>
<tr><td><code>|</code></td></tr>
</tbody>
</table>| `a|b` | |<table>
<tbody>
<tr><td><code>a|b</code></td><td></td></tr>
</tbody>
</table>Only ASCII spaces are padding. A tab between the pipes is cell content, not an empty cell (PART 7). Trailing whitespace after the closing pipe changes nothing:
| |<table>
<tbody>
<tr><td> </td></tr>
</tbody>
</table>| |<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>A blank row interrupts a paragraph, because opening and interruption share the predicate:
text
| |<p>text</p>
<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>text
|||<p>text</p>
<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>Blank rows before and after rows with content, and consecutive blank rows, are rows of their own. None disappears and none merges with its neighbor:
| |
| a |
| |<table>
<tbody>
<tr><td></td></tr>
<tr><td>a</td></tr>
<tr><td></td></tr>
</tbody>
</table>| | |
|||
| | |<table>
<tbody>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
</tbody>
</table>Inside a quote and inside list items, under the hosts' usual content columns:
> text
> | |
> | |<blockquote>
<p>text</p>
<table>
<tbody>
<tr><td></td></tr>
<tr><td></td></tr>
</tbody>
</table>
</blockquote>- | |
- |||<ul>
<li>
<table>
<tbody>
<tr><td></td></tr>
</tbody>
</table>
</li>
<li>
<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>
</li>
</ul>A caption attaches to a table of blank rows like any other:
| |
^ A caption<table>
<caption>A caption</caption>
<tbody>
<tr><td></td></tr>
</tbody>
</table>Empty header rows before and after a body row keep the existing header-region and scope rules:
|= |= |
| a | b |
|= |= |<table>
<thead>
<tr><th scope="col"></th><th scope="col"></th></tr>
</thead>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><th scope="row"></th><th scope="row"></th></tr>
</tbody>
</table>A blank first row followed by a GFM delimiter row is promoted to an empty header row (T7):
|= |= |
| a | b |<table>
<thead>
<tr><th scope="col"></th><th scope="col"></th></tr>
</thead>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>A continuation row creates no row. It fills the blank row above it, and an empty continuation appends nothing and does not become a blank row (T6):
| | |
+ x | y |<table>
<tbody>
<tr><td>x</td><td>y</td></tr>
</tbody>
</table>| |
+ |
| |<table>
<tbody>
<tr><td></td></tr>
<tr><td></td></tr>
</tbody>
</table>A table still cannot begin with a continuation row, blank or not:
+ | |<p>+ | |</p>Span markers keep their existing walk. A blank cell can be the origin a marker extends, and no rule fills blank cells (T5):
| | < |
| ^ | ^ |<table>
<tbody>
<tr><td rowspan="2" colspan="2"></td></tr>
<tr></tr>
</tbody>
</table>A continuation row needs a body row
1 conformance fixture
A + continuation row joins the row ABOVE IT IN THE SOURCE, and a delimiter row is consumed: it produces no <tr> and is not a row of the table. So a + line directly under one has no row to join and stays an ordinary paragraph.
The reason is the delimiter row and not the missing body row. A header row on its own IS joinable - see A continuation row joins the row above it, whatever its cells hold below - so "no body row yet" would answer that document wrongly (markup-carve/carve#1354).
| a | b |
| - | - |
+ cont |<table>
<thead>
<tr><th scope="col">a</th><th scope="col">b</th></tr>
</thead>
</table>
<p>+ cont |</p>Table row closing pipe
3 conformance fixtures
A table row must close with a pipe. A line that starts with | but has content dangling after its last pipe is prose, wherever it appears - it neither opens a table at a block start nor interrupts an open paragraph.
| a | b<p>| a | b</p>The rule applies to every row, not only the first: once a line fails to close, the table ends and that line is a paragraph.
| a | b |
| c | d<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>
<p>| c | d</p>And an unclosed line does not swallow a following well-formed row: the row still opens its own table.
| a
| b |<p>| a</p>
<table>
<tbody>
<tr><td>b</td></tr>
</tbody>
</table>A table delimiter cell needs at least one dash
1 conformance fixture
A lone : does not make a delimiter row, so the row is an ordinary body row and the table gets no header.
| a | b |
|:|:|
| 1 | 2 |<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td>:</td><td>:</td></tr>
<tr><td>1</td><td>2</td></tr>
</tbody>
</table>A continuation row carries no trailing text
2 conformance fixtures
The + continuation marker replaces the leading pipe, and the row must close with one. A proper continuation merges into the row above; text after the closing pipe leaves the line outside the table entirely.
| a | b |
+ c | d |<table>
<tbody>
<tr><td>a c</td><td>b d</td></tr>
</tbody>
</table>| a | b |
+ c | d | junk<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>
<p>+ c | d | junk</p>A ragged table keeps each row's cell count
3 conformance fixtures
Cell count is content, not source padding. The canonical writer can align the cells a row carries, but it does not append empty cells to make the table rectangular. A missing trailing cell and an authored empty cell render as different table structures.
| ~x~ |
| a | b |<table>
<tbody>
<tr><td><s>x</s></td></tr>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>The same rule applies when the first row is a header. A short body row stays short, and the canonical native = spelling does not need a delimiter row.
|= |= x |
| y |<table>
<thead>
<tr><th scope="col"></th><th scope="col">x</th></tr>
</thead>
<tbody>
<tr><td>y</td></tr>
</tbody>
</table>A header row may itself be shorter than a later body row. Its native markers still preserve it as a header without manufacturing another header cell.
|= h |
| |x |<table>
<thead>
<tr><th scope="col">h</th></tr>
</thead>
<tbody>
<tr><td></td><td>x</td></tr>
</tbody>
</table>Tables
2 conformance fixtures
An escaped pipe inside cell content (\|) renders as a literal | and does not split the cell.
|= Symbol |= Meaning |
| \| | pipe char |<table>
<thead>
<tr><th scope="col">Symbol</th><th scope="col">Meaning</th></tr>
</thead>
<tbody>
<tr><td>|</td><td>pipe char</td></tr>
</tbody>
</table>Empty cells produce empty <td> elements — placement is preserved, not collapsed.
|= A |= B |= C |
| 1 | | 3 |<table>
<thead>
<tr><th scope="col">A</th><th scope="col">B</th><th scope="col">C</th></tr>
</thead>
<tbody>
<tr><td>1</td><td></td><td>3</td></tr>
</tbody>
</table>A verbatim run a continuation row opens stays open into the next continuation row
5 conformance fixtures
783-a-verbatim-run-a-continuation-row-opens-stays-open-into-the-next-continuation-row783-a-verbatim-run-a-continuation-row-opens-stays-open-into-the-next-continuation-row-2783-a-verbatim-run-a-continuation-row-opens-stays-open-into-the-next-continuation-row-3783-a-verbatim-run-a-continuation-row-opens-stays-open-into-the-next-continuation-row-4783-a-verbatim-run-a-continuation-row-opens-stays-open-into-the-next-continuation-row-5
A + continuation extends the cell (CARVE-P2-019 rule 2). A verbatim run left open at a continuation row's closing pipe is still open when the next continuation row is cut into cells, so the pipes it spans there are its content, whichever column the run opened in.
| a | b |
+ c` |
+ x | y |<table>
<tbody>
<tr><td>a c<code> x | y</code></td><td>b</td></tr>
</tbody>
</table>| a | b |
+ c` | d |
+ x | y |<table>
<tbody>
<tr><td>a c<code> | d x | y</code></td><td>b</td></tr>
</tbody>
</table>| a | b |
+ c | d` |
+ x | y |<table>
<tbody>
<tr><td>a c x</td><td>b d<code> y</code></td></tr>
</tbody>
</table>| a | b | c |
+ x | y` |
+ p | q | r |<table>
<tbody>
<tr><td>a x p</td><td>b y<code> q | r</code></td><td>c</td></tr>
</tbody>
</table>| a | b |
+ ``c |
+ x `` y | z |<table>
<tbody>
<tr><td>a <code>c x </code> y</td><td>b z</td></tr>
</tbody>
</table>A hard break in a pipe-table cell survives Markdown export
1 conformance fixture
A terminal hard break in a table cell uses <br> in Markdown because a newline would end the row.
| a\ | b |<table>
<tbody>
<tr><td>a<br>
</td><td>b</td></tr>
</tbody>
</table>A span marker with no origin keeps its column's alignment
2 conformance fixtures
A span marker with no origin renders as an empty cell (CARVE-P9-002). It loses its content and its span, not its column: a delimiter row's alignment applies to the whole column (CARVE-P9-004), so the empty cell carries it too (markup-carve/carve#4277).
|={>} a |={~} b |
| < | c |<table>
<thead>
<tr><th scope="col" style="text-align: right;">a</th><th scope="col" style="text-align: center;">b</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;"></td><td style="text-align: center;">c</td></tr>
</tbody>
</table>The same holds for an orphan ^ in the head row and for a column a head-row marker aligns.
|={>} ^ |={>} b |
| c | d |<table>
<thead>
<tr><th scope="col" style="text-align: right;"></th><th scope="col" style="text-align: right;">b</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">c</td><td style="text-align: right;">d</td></tr>
</tbody>
</table>A row attribute block follows the last closing pipe
3 conformance fixtures
A cell may start with { directly after a pipe. It is not the row's attribute block when the payload it would open is not valid attribute syntax, and the valid block after the closing pipe still belongs to the row (carve#4322).
| a |{~|{.c}<table>
<tbody>
<tr class="c"><td>a</td><td>{~</td></tr>
</tbody>
</table>|{=|{#r}<table>
<tbody>
<tr id="r"><td>{=</td></tr>
</tbody>
</table>| a |{bad!!}<p>| a |{bad!!}</p>A quoted row attribute value may hold a pipe
3 conformance fixtures
row_attributes is a whole attribute block, so a | inside a quoted value belongs to the value and does not make the block a cell (carve#4323).
| a |{a="x|y"}<table>
<tbody>
<tr a="x|y"><td>a</td></tr>
</tbody>
</table>| a | b |{a='x|y|z' .c}<table>
<tbody>
<tr a="x|y|z" class="c"><td>a</td><td>b</td></tr>
</tbody>
</table>|= a |{a="|"}<table>
<thead>
<tr a="|"><th scope="col">a</th></tr>
</thead>
</table>A computed span drops the author copy of its key
1 conformance fixture
PART 5: a computed rowspan or colspan is authoritative (carve#4456).
|={colspan=3} a | < | b |
| c | d | e |<table>
<tbody>
<tr><th scope="row" colspan="2">a</th><td>b</td></tr>
<tr><td>c</td><td>d</td><td>e</td></tr>
</tbody>
</table>A continuation cell past the last column is a new cell
5 conformance fixtures
A + fragment with no cell above it appends one to the row above (PART 9 §5 T6).
| a | b |
+ c | d | e |<table>
<tbody>
<tr><td>a c</td><td>b d</td><td>e</td></tr>
</tbody>
</table>A skipped column gets an empty cell, and a later + line joins onto the new cell.
| a |
+ b | | c |
+ d | | e |<table>
<tbody>
<tr><td>a b d</td><td></td><td>c e</td></tr>
</tbody>
</table>An empty slot past the last cell appends nothing.
| a |
+ b | |<table>
<tbody>
<tr><td>a b</td></tr>
</tbody>
</table>The new cell's ^ is text, not a span marker.
| a | x |
| b |
+ c | ^ |<table>
<tbody>
<tr><td>a</td><td>x</td></tr>
<tr><td>b c</td><td>^</td></tr>
</tbody>
</table>In a row of header cells the new cell is a header cell.
|= a |
+ b | c |
| d | e |<table>
<thead>
<tr><th scope="col">a b</th><th scope="col">c</th></tr>
</thead>
<tbody>
<tr><td>d</td><td>e</td></tr>
</tbody>
</table>A cell's escaped pipe reaches a link destination
4 conformance fixtures
In a table cell \| is the escape for a pipe, and a link or image destination receives the unescaped |, so a pipe in a URL can be spelled (markup-carve/carve#4549).
| [x](/a\|b) |<table>
<tbody>
<tr><td><a href="/a|b">x</a></td></tr>
</tbody>
</table>|  |<table>
<tbody>
<tr><td><img src="/a|b" alt="i"></td></tr>
</tbody>
</table>A code span is verbatim and keeps the backslash.
| `a\|b` and [x](/a\|b) |<table>
<tbody>
<tr><td><code>a\|b</code> and <a href="/a|b">x</a></td></tr>
</tbody>
</table>Outside a table \| is no destination escape, and the backslash stays.
[x](/a\|b)<p><a href="/a\|b">x</a></p>A caption host and a continuation cell read what the block holds
8 conformance fixtures
870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-2870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-3870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-4870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-5870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-6870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-7870-a-caption-host-and-a-continuation-cell-read-what-the-block-holds-8
Confirmation-round model fixes (carve#4566, carve#4568, carve#4573). A new continuation cell is a header cell when every other cell is, and a < marker counts as the cell it extends (PART 9 §5). A comment renders nothing, so it does not keep a lone image from taking a caption (PART 9R R7). A quote of structural-only lines holds no content, nested quotes and bare fences included (PART 9 §4d).
A < marker counts as the header cell it extends, so the new cell is a header cell.
|= a | < |
+ | | c |<table>
<thead>
<tr><th scope="col" colspan="2">a</th><th scope="col">c</th></tr>
</thead>
</table>A < at the row's first column has no origin and counts as an ordinary cell.
| < |= a |
+ | | c |<table>
<tbody>
<tr><td></td><th scope="row">a</th><td>c</td></tr>
</tbody>
</table>A line comment after a lone image leaves it a block image with a caption.
 %% c
^ cap<figure>
<img src="/i" alt="a">
<figcaption>cap</figcaption>
</figure>So does a braced comment glued to it.
{%%}
^ cap<figure>
<img src="/i" alt="a">
<figcaption>cap</figcaption>
</figure>A space before a braced comment still renders, so the image stays inline and the caption is text.
 {% c %}
^ cap<p><img src="/i" alt="a">
^ cap</p>A quote holding only an empty nested quote takes no caption.
> >
^ cap<blockquote>
<blockquote>
</blockquote>
</blockquote>
<p>^ cap</p>Nor does one holding only a bare fence pair.
> :::
> :::
^ cap<blockquote>
<div>
</div>
</blockquote>
<p>^ cap</p>A nested quote with content still makes the outer quote captionable.
> >
> > a
^ cap<figure>
<blockquote>
<blockquote><p>a</p></blockquote>
</blockquote>
<figcaption>cap</figcaption>
</figure>A caption line holding only a comment makes no caption
5 conformance fixtures
PART 2 caption (carve#4559). Removing a comment must not change the output (carve#4220), so a caret whose content is only comments opens no caption and the line is paragraph text. A comment followed by text still captions.
| a |
^ %% x<table>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>
<p>^</p>> q
^ %% x<blockquote><p>q
^</p></blockquote>> q
^ %% x<blockquote><p>q</p></blockquote>
<p>^</p>| a |
^ {% x %}y<table>
<caption>y</caption>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>| a |
^ {% x %}y %% z<table>
<caption>y</caption>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>A widths list writes one col per entry
4 conformance fixtures
widths emits a colgroup with one col per entry, not one per column. A list shorter than the row leaves the tail unset and writes no col for it (CARVE-P12-039, markup-carve/carve#4587).
{widths=25,50}
| a | b | c |<table>
<colgroup>
<col style="width: 25%;">
<col style="width: 50%;">
</colgroup>
<tbody>
<tr><td>a</td><td>b</td><td>c</td></tr>
</tbody>
</table>An empty entry is still an entry, so it writes a bare col.
{widths=,50}
| a | b | c |<table>
<colgroup>
<col>
<col style="width: 50%;">
</colgroup>
<tbody>
<tr><td>a</td><td>b</td><td>c</td></tr>
</tbody>
</table>A width above 100 is invalid and leaves its column unset. With no valid width left, there is no colgroup.
{widths=101}
| a |<table>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>{widths=50,101}
| a | b |<table>
<colgroup>
<col style="width: 50%;">
<col>
</colgroup>
<tbody>
<tr><td>a</td><td>b</td></tr>
</tbody>
</table>A table writes one col per column entry
2 conformance fixtures
A table's column entries run to the longest of its aligns, valigns and widths lists, capped at the column count, and widths writes one col per entry. An aligns list longer than widths adds bare col elements up to its own length (CARVE-P12-039, markup-carve/carve#4608).
{aligns=left,right,center widths=25}
| a | b | c |<table>
<colgroup>
<col style="width: 25%;">
<col>
<col>
</colgroup>
<tbody>
<tr><td style="text-align: left;">a</td><td style="text-align: right;">b</td><td style="text-align: center;">c</td></tr>
</tbody>
</table>{valigns=top,bottom widths=40}
| a | b | c |<table>
<colgroup>
<col style="width: 40%;">
<col>
</colgroup>
<tbody>
<tr><td style="vertical-align: top;">a</td><td style="vertical-align: bottom;">b</td><td>c</td></tr>
</tbody>
</table>A delimited body's overlapping header and footer make no header cells
2 conformance fixtures
PART 9 §5 (carve#4640). An explicit header-rows and footer-rows that overlap on a delimited body are invalid under the ordinary partition rule, so no row is a header cell, as on a pipe table. A ^ in the row above a continuation counts as a data cell for the header test, so the appended cell is a data cell.
{table header-rows=2 footer-rows=1}
```csv
a
b
```<table>
<tbody>
<tr><td>a</td></tr>
<tr><td>b</td></tr>
</tbody>
</table>|= a |
| ^ |
+ | c |<table>
<tbody>
<tr><th scope="col" rowspan="2">a</th></tr>
<tr><td>c</td></tr>
</tbody>
</table>An unresolved reference in a cell reads the unescaped pipe
3 conformance fixtures
PART 4 table cells (carve#4718). Cell splitting runs before the inline pass, so the literal source of an unresolved reference in a cell is the cell content after the \| unescape, with no backslash left.
| [a\|b][m] |<table>
<tbody>
<tr><td>[a|b][m]</td></tr>
</tbody>
</table>An unresolved image reference reads the same.
| ![a\|b][m] |<table>
<tbody>
<tr><td>![a|b][m]</td></tr>
</tbody>
</table>A label written with \| in a cell matches a definition spelled with a plain pipe.
| [x][r\|s] |
[r|s]: /u<table>
<tbody>
<tr><td><a href="/u">x</a></td></tr>
</tbody>
</table>An authored rowspan or colspan on a cell is dropped
3 conformance fixtures
PART 4 cell attributes (carve#4715). Only the ^ and < span markers shape the grid, so an authored rowspan or colspan on a cell is always dropped, whether or not a span is computed.
|{rowspan=2} a | b |
| c | d |<table>
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td>c</td><td>d</td></tr>
</tbody>
</table>Beside a computed span, the authored key is dropped too and the other attributes stay.
|{colspan=3 .k} a | b |
| ^ | d |<table>
<tbody>
<tr><td rowspan="2" class="k">a</td><td>b</td></tr>
<tr><td>d</td></tr>
</tbody>
</table>An authored align follows PART 10 like any other key and stays beside the computed alignment.
|{> align=left} a |<table>
<tbody>
<tr><td align="left" style="text-align: right;">a</td></tr>
</tbody>
</table>An indented caption line captions its host
2 conformance fixtures
carve#4796. Leading space stops no line form at any level (PART 0 S3), and a caption is one of those line forms, so a ^ line indented past its host still captions it.
| a |
^ cap<table>
<caption>cap</caption>
<tbody>
<tr><td>a</td></tr>
</tbody>
</table>An image takes it the same way.

^ cap<figure>
<img src="/i" alt="a">
<figcaption>cap</figcaption>
</figure>A quote holding only braced comments is not a caption host
1 conformance fixture
carve#4799. A paragraph of only braced comments renders nothing (PART 9 comments), so the quote holds nothing and the caret line is a paragraph.
> {% c %}
^ cap<blockquote>
</blockquote>
<p>^ cap</p>Native head rows with span placeholders
9 conformance fixtures
952-native-head-rows-with-span-placeholders952-native-head-rows-with-span-placeholders-2952-native-head-rows-with-span-placeholders-3952-native-head-rows-with-span-placeholders-4952-native-head-rows-with-span-placeholders-5952-native-head-rows-with-span-placeholders-6952-native-head-rows-with-span-placeholders-7952-native-head-rows-with-span-placeholders-8952-native-head-rows-with-span-placeholders-9
An orphan placeholder takes the head row's kind when the other cells it owns are headers (CARVE-P9-006). Its span survives in the tree (CARVE-P12-048).
| ^ |= Carve |= Djot |
| Row spans | yes | no |<table>
<thead>
<tr><th scope="col"></th><th scope="col">Carve</th><th scope="col">Djot</th></tr>
</thead>
<tbody>
<tr><td>Row spans</td><td>yes</td><td>no</td></tr>
</tbody>
</table>A covered span placeholder carries its own physical column's default. The origin's marker applies only to the origin column (CARVE-P9-004).
|={>} Price |{<} < |={~} Stock |
| 12.50 | EUR | 3 |<table>
<thead>
<tr><th scope="col" colspan="2" style="text-align: right;">Price</th><th scope="col" style="text-align: center;">Stock</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">12.50</td><td style="text-align: left;">EUR</td><td style="text-align: center;">3</td></tr>
</tbody>
</table>A space and further content keep <x as data. An escaped < after a kind marker is literal header content. Neither is a span marker.
| <x |<table>
<tbody>
<tr><td><x</td></tr>
</tbody>
</table>|= \< |<table>
<thead>
<tr><th scope="col"><</th></tr>
</thead>
</table>A data payload shaped like a span alignment uses an escape (PART 11 §2).
| \<< |<table>
<tbody>
<tr><td><<</td></tr>
</tbody>
</table>A ^ that is the whole content after a header kind marker is a header-kind span marker (CARVE-P9-006). It is a header cell itself, so a head row of only orphan placeholders still heads its table.
|= ^ |
| x |<table>
<thead>
<tr><th scope="col"></th></tr>
</thead>
<tbody>
<tr><td>x</td></tr>
</tbody>
</table>An = after a space, or content after the ^, leaves the cell as data.
| =^ |
|=^x |<table>
<tbody>
<tr><td>=^</td></tr>
<tr><td>=^x</td></tr>
</tbody>
</table>|\=^ |<table>
<tbody>
<tr><td>=^</td></tr>
</tbody>
</table>A separator-promoted orphan ^ is a header cell in the tree, and the canonical writer spells it header-kind (CARVE-P11-066).
|= ^ |= a |
| 1 | 2 |<table>
<thead>
<tr><th scope="col"></th><th scope="col">a</th></tr>
</thead>
<tbody>
<tr><td>1</td><td>2</td></tr>
</tbody>
</table>A deprecated cell alignment prefix reads as its braced run
3 conformance fixtures
The 0.1.13 cell prefixes |=>, |<, |>^, |~~ and |?v stay readable through 0.1.x and are removed in 0.2.0. Each gives the same tree and HTML as the glued symbol run at the start of the cell's attribute block, which is the only spelling the canonical writer emits (CARVE-P9-007). A legacy prefix followed by an attribute block merges into one block, alignment first.
|=> Price |= Item |= Size |= Mood |
| 12 |< pen |>^ big |~~ ok |
|?v 3 | ink |>{.num} 9 | fine |<table>
<thead>
<tr><th scope="col" style="text-align: right;">Price</th><th scope="col">Item</th><th scope="col">Size</th><th scope="col">Mood</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">12</td><td style="text-align: left;">pen</td><td style="text-align: right; vertical-align: top;">big</td><td style="text-align: center; vertical-align: middle;">ok</td></tr>
<tr><td style="text-align: right; vertical-align: bottom;">3</td><td>ink</td><td class="num" style="text-align: right;">9</td><td>fine</td></tr>
</tbody>
</table>The braced spelling of the same table:
|={>} Price |= Item |= Size |= Mood |
| 12 |{<} pen |{>^} big |{~~} ok |
|{?v} 3 | ink |{> .num} 9 | fine |<table>
<thead>
<tr><th scope="col" style="text-align: right;">Price</th><th scope="col">Item</th><th scope="col">Size</th><th scope="col">Mood</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;">12</td><td style="text-align: left;">pen</td><td style="text-align: right; vertical-align: top;">big</td><td style="text-align: center; vertical-align: middle;">ok</td></tr>
<tr><td style="text-align: right; vertical-align: bottom;">3</td><td>ink</td><td class="num" style="text-align: right;">9</td><td>fine</td></tr>
</tbody>
</table>|=< | keeps its 0.1.13 reading as an empty left-aligned header. A header-kind colspan placeholder uses a space after =, like a body-row placeholder: |= < |.
|= Name |= < |= Qty |
| pen |< | 3 |<table>
<thead>
<tr><th scope="col" colspan="2">Name</th><th scope="col">Qty</th></tr>
</thead>
<tbody>
<tr><td colspan="2">pen</td><td>3</td></tr>
</tbody>
</table>An escaped row closer stays in an open code span
3 conformance fixtures
CARVE-P2-019 rule 3 keeps the final \| verbatim in an open code span while its pipe closes the row (markup-carve/carve#5667).
|`\|<table>
<tbody>
<tr><td><code>\|</code></td></tr>
</tbody>
</table>The same closer stays in the last cell of a wider row.
| a | ``b\|<table>
<tbody>
<tr><td>a</td><td><code>b\|</code></td></tr>
</tbody>
</table>A continuation can carry the escaped closer into an existing open run.
| a `b |
+ c\|<table>
<tbody>
<tr><td>a <code>b c\|</code></td></tr>
</tbody>
</table>