Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable zebra striping in Github table markdown

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:

enter image description here

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.

like image 376
Phillip Ngan Avatar asked May 12 '18 01:05

Phillip Ngan


1 Answers

It's not possible with CSS, but there is a workaround. Just add an empty row between your rows.

<tr></tr>
like image 151
David Peters Avatar answered Nov 16 '22 14:11

David Peters