code: def render_content(text, user_content=False, context=None, username=None,
                     password=None, render_offline=False, api_url=None):
      
      renderer = (GitHubRenderer(user_content, context, api_url)
                  if not render_offline else
                  OfflineRenderer(user_content, context))
      auth = (username, password) if username or password else None
      return renderer.render(text, auth)
docs: Renders the specified markup and returns the result.