Attached is a patch that alters the table-generation code to add 'odd'/'even' CSS classes, so Markdown tables get alternating row styling (like other Drupal tables).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | markdown.php_listitemrowalteration.patch | 971 bytes | lolmaus |
| markdown.php_tablerowalternation.patch | 1.02 KB | smokris |
Comments
Comment #1
lolmaus commentedWorks for me! Great patch!
PS Clear cache to see the result.
Comment #2
lolmaus commentedComment #3
beeradb commentedPlease update this to match the standards outlined in http://drupal.org/coding-standards. In particular, I see issues with whitespace around string concatenations and the formatting of if/else blocks.
Comment #4
justin2pin commentedI don't think patching a 3rd-party library is the way we want to go with this. I'd suggest either (a) emailing Michel Fortin (http://michelf.com/projects/php-markdown/) to see if he'd be interested in this modification for Markdown, after which I'd be happy to include his changes in another module release; or (b) moving in the direction sreynen outlines here: http://drupal.org/node/515048#comment-2906948.
Comment #5
lolmaus commentedAnd here comes a patch for list item row alteration!