code: def render(self, text, auth=None):
          
          # Ensure text is Unicode
          expected = str if sys.version_info[0] >= 3 else unicode  # noqa
          if not isinstance(text, expected):
              raise TypeError(
                  'Expected a Unicode string, got {!r}.'.format(text))
  
          if self.user_content:
              url = '{0}/markdown'.format(self.api_url)
              data = {'text': text, 'mode': 'gfm'}
              if self.context:
                  data['context'] = self.context
              data = json.dumps(data, ensure_ascii=False).encode('utf-8')
              headers = {'content-type': 'application/json; charset=UTF-8'}
          else:
              url = '{0}/markdown/raw'.format(self.api_url)
              data = text.encode('utf-8')
              headers = {'content-type': 'text/x-markdown; charset=UTF-8'}
  
          r = requests.post(url, headers=headers, data=data, auth=auth)
          r.raise_for_status()
  
          # FUTURE: Remove this once GitHub API properly handles Unicode markdown
          r.encoding = 'utf-8'
  
          return r.text if self.raw else patch(r.text)
docs: Renders the specified markdown content and embedded styles.
  
          Raises TypeError if text is not a Unicode string.
          Raises requests.HTTPError if the request fails.