all repos — markup @ 81ed71457712ee2c90a234ddddd608fa9ec961f7

The code we use to render README.your_favorite_markup

Merge branch 'master' into fix-rst-dom
Garen Torikian gjtorikian@gmail.com
Mon, 30 Sep 2013 00:38:48 -0700
commit

81ed71457712ee2c90a234ddddd608fa9ec961f7

parent

f38a51da6fdbc0cff8f0fde0a9037faac4605ce4

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M lib/github/commands/rest2htmllib/github/commands/rest2html

@@ -40,6 +40,14 @@ self.body.append(self.starttag(node, 'pre', lang=language))

else: self.body.append(self.starttag(node, 'pre')) + def visit_table(self, node): + classes = ' '.join(['docutils', self.settings.table_style]).strip() + self.body.append( + self.starttag(node, 'table', CLASS=classes)) + + def depart_table(self, node): + self.body.append('</table>\n') + def main(): """ Parses the given ReST file or the redirected string input and returns the