markdown.php
===================================================================
--- markdown.php	(revision 4885)
+++ markdown.php	(working copy)
@@ -2351,6 +2351,7 @@
 		$rows = explode("\n", trim($content, "\n"));
 		
 		$text .= "<tbody>\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 .= "<tr>\n";
+			$text .= "<tr class='".$tclass."'>\n";
 			foreach ($row_cells as $n => $cell)
 				$text .= "  <td$attr[$n]>".$this->runSpanGamut(trim($cell))."</td>\n";
 			$text .= "</tr>\n";
+
+			if ($tclass==='even')
+				$tclass='odd';
+			else
+				$tclass='even';
 		}
 		$text .= "</tbody>\n";
 		$text .= "</table>";
@@ -2891,4 +2897,4 @@
 software, even if advised of the possibility of such damage.
 
 */
-?>
\ No newline at end of file
+?>
