def build_code ( self , lang , body ) : self . out . append ( "```" + lang ) self . build_markdown ( lang , body ) self . out . append ( "```" )
insert python code in markdown
Wrap text with markdown specific flavour .
def build_code(self, lang, body):
        """Wrap text with markdown specific flavour."""
        self.out.append("```" + lang)
        self.build_markdown(lang, body)
        self.out.append("```")