From b1e4fb6ee6125ed5365b6d3b3204953907cbb51c Mon Sep 17 00:00:00 2001 From: Stephen Caraher Date: Fri, 19 Sep 2014 01:43:03 +1000 Subject: [PATCH] use not for rst inline literals --- lib/github/commands/rest2html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/github/commands/rest2html b/lib/github/commands/rest2html index c8c8b521..ca9f26ff 100755 --- a/lib/github/commands/rest2html +++ b/lib/github/commands/rest2html @@ -86,6 +86,14 @@ class GitHubHTMLTranslator(HTMLTranslator): else: self.body.append(self.starttag(node, 'pre')) + # always wrap two-backtick rst inline literals in , not + # this also avoids the generation of superfluous tags + def visit_literal(self, node): + self.body.append(self.starttag(node, 'code', suffix='')) + + def depart_literal(self, node): + self.body.append('') + def visit_table(self, node): classes = ' '.join(['docutils', self.settings.table_style]).strip() self.body.append(