Reputation: 16106
By default Tables in Github Markdown are rendered with alternate rows highlighted (zebra striped). What is the markdown to disable this feature? The Github markdown documentation for tables does not describe how this is done.
For example, this table has row striping:
The corresponding markdown is:
Key|Value
---|-----
A|B
C|D
E|F
G|H
This question is different from this question which talks about applying colors in markdown. This question relates specifically to the alternating row highlighting in tables.
Upvotes: 22
Views: 6146
Reputation: 394
As you both asked for a example, here is snippet from a table i am constructing, note the <tr></tr>
, this disables zebra striping.
| Description | YAML Path | Type | Values | Example |
| :---------- | :-------- | :--- | :----- | :------ |
| Absolute path to existing media | general/library | String | N/A | `library_path: '/media'` <tr></tr> |
| Daemonised mode | general/daemon_mode | String | 'foreground'\|'background' | `daemon_mode: 'foreground'` <tr></tr> |
Upvotes: 0
Reputation: 929
It's not possible with CSS, but there is a workaround. Just add an empty row between your rows.
<tr></tr>
Upvotes: 18