Skip to content

Commit 7d5eb5e

Browse files
committed
Remove tableHeader definition
This change simplifies the AST defined by MDAST thtough removing the `tableHeader` node. Closes GH-6.
1 parent 5ad916b commit 7d5eb5e

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

readme.md

+3-18
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ For an example, see the definition of [`List`][list].
302302
### `Table`
303303

304304
`Table` ([`Parent`][parent]) represents tabular data, with alignment.
305-
Its children are either [`TableHeader`][tableheader] (the first child),
306-
or [`TableRow`][tablerow] (all other children).
305+
Its children are [`TableRow`][tablerow]s, the first of which acts as
306+
a table header row.
307307

308308
`table.align` represents the alignment of columns.
309309

@@ -336,7 +336,7 @@ Yields:
336336
"align": ["left", "center"],
337337
"children": [
338338
{
339-
"type": "tableHeader",
339+
"type": "tableRow",
340340
"children": [
341341
{
342342
"type": "tableCell",
@@ -377,19 +377,6 @@ Yields:
377377
}
378378
```
379379

380-
### `TableHeader`
381-
382-
`TableHeader` ([`Parent`][parent]). Its children are always
383-
[`TableCell`][tablecell].
384-
385-
```idl
386-
interface TableHeader <: Parent {
387-
type: "tableHeader";
388-
}
389-
```
390-
391-
For an example, see the definition of [`Table`][table].
392-
393380
### `TableRow`
394381

395382
`TableRow` ([`Parent`][parent]). Its children are always
@@ -928,8 +915,6 @@ MIT © [Titus Wormer](http://wooorm.com)
928915

929916
[table]: #table
930917

931-
[tableheader]: #tableheader
932-
933918
[tablerow]: #tablerow
934919

935920
[tablecell]: #tablecell

0 commit comments

Comments
 (0)