||Heading 1 || Heading 2 || Heading 3 |Content 1-1| Content 1-2| Content 1-3 |Content 2-1| Content 2-2| Content 2-3
renders to:
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Content 1-1 | Content 1-2 | Content 1-3 |
Content 2-1 | Content 2-2 | Content 2-3 |
As the example shows, heading cells are introduced by a double vertical slash each, normal content cells are marked by a single slash.
Simply wrap your standard table definition with the markup.
%%sortable ||Heading 1 || Heading 2 || Heading 3 |Content 1-1| Content 1-2| Content 1-3 |Content 2-1| Content 2-2| Content 2-3
renders to:
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Content 1-1 | Content 1-2 | Content 1-3 |
Content 2-1 | Content 2-2 | Content 2-3 |
Columns of sortable tables can be sorted by clicking on the particular heading name.
For wide tables it may be reasonable to color table lines differently.
%%zebra-table ||Heading 1 || Heading 2 || Heading 3 |Content 1-1| Content 1-2| Content 1-3 |Content 2-1| Content 2-2| Content 2-3 |Content 3-1| Content 3-2| Content 3-3 |Content 4-1| Content 4-2| Content 4-3
renders to:
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Content 1-1 | Content 1-2 | Content 1-3 |
Content 2-1 | Content 2-2 | Content 2-3 |
Content 3-1 | Content 3-2 | Content 3-3 |
Content 4-1 | Content 4-2 | Content 4-3 |