markdown.php =================================================================== --- markdown.php (revision 4885) +++ markdown.php (working copy) @@ -2351,6 +2351,7 @@ $rows = explode("\n", trim($content, "\n")); $text .= "\n"; + $tclass = 'odd'; foreach ($rows as $row) { # Parsing span elements, including code spans, character escapes, # and inline HTML tags, so that pipes inside those gets ignored. @@ -2360,10 +2361,15 @@ $row_cells = preg_split('/ *[|] */', $row, $col_count); $row_cells = array_pad($row_cells, $col_count, ''); - $text .= "\n"; + $text .= "\n"; foreach ($row_cells as $n => $cell) $text .= " ".$this->runSpanGamut(trim($cell))."\n"; $text .= "\n"; + + if ($tclass==='even') + $tclass='odd'; + else + $tclass='even'; } $text .= "\n"; $text .= ""; @@ -2891,4 +2897,4 @@ software, even if advised of the possibility of such damage. */ -?> \ No newline at end of file +?>