code: def publish_string(self, rest, outfile, styles=''):
          
          html = self.convert_string(rest)
          html = self.strip_xml_header(html)
          html = self.apply_styles(html, styles)
          self.write_file(html, outfile)
          return outfile
docs: Render a reST string as HTML.