all repos — markup @ 6536a74ef095f4d6880fa91e9e61c7d510b23ddc

The code we use to render README.your_favorite_markup

remove rst table border
Tyler Chung zonyitoo@gmail.com
Sat, 28 Sep 2013 14:06:14 +0800
commit

6536a74ef095f4d6880fa91e9e61c7d510b23ddc

parent

cbbaeda7ed1cd2a4f9f59598ebefaa3c8568494e

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