Skip to content

Commit

Permalink
Remove tableHeader definition
Browse files Browse the repository at this point in the history
This change simplifies the AST defined by MDAST thtough removing the
`tableHeader` node.

Closes GH-6.
  • Loading branch information
wooorm committed Feb 6, 2016
1 parent 5ad916b commit 7d5eb5e
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ For an example, see the definition of [`List`][list].
### `Table`

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

`table.align` represents the alignment of columns.

Expand Down Expand Up @@ -336,7 +336,7 @@ Yields:
"align": ["left", "center"],
"children": [
{
"type": "tableHeader",
"type": "tableRow",
"children": [
{
"type": "tableCell",
Expand Down Expand Up @@ -377,19 +377,6 @@ Yields:
}
```

### `TableHeader`

`TableHeader` ([`Parent`][parent]). Its children are always
[`TableCell`][tablecell].

```idl
interface TableHeader <: Parent {
type: "tableHeader";
}
```

For an example, see the definition of [`Table`][table].

### `TableRow`

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

[table]: #table

[tableheader]: #tableheader

[tablerow]: #tablerow

[tablecell]: #tablecell
Expand Down

0 comments on commit 7d5eb5e

Please sign in to comment.