def render_markdown(text):
 if isinstance(text, bytes):
  text = text.decode(u'utf-8')
 return markdown(text, **MARKDOWN_KWARGS)

def render_markdown ( text ) : if isinstance ( text , bytes ) : text = text . decode ( u'utf-8' ) return markdown ( text , ** MARKDOWN_KWARGS )
returns the data as rendered markdown .