parameters: (src,
           writer='html4css1',
           report_level=1,
           stylesheet='default.css',
           input_encoding=default_input_encoding,
           output_encoding=default_output_encoding,
           language_code=default_lang,
           initial_header_level = initial_header_level,
           warnings = None,
           settings = {})
return_statement: return output.encode(output_encoding)
docstring: render HTML from a reStructuredText string
  
          - 'src'  -- string containing a valid reST document
  
          - 'writer' -- docutils writer
  
          - 'report_level' - verbosity of reST parser
  
          - 'stylesheet' - Stylesheet to be used
  
          - 'input_encoding' - encoding of the reST input string
  
          - 'output_encoding' - encoding of the rendered HTML output
  
          - 'report_level' - verbosity of reST parser
  
          - 'language_code' - docutils language
  
          - 'initial_header_level' - level of the first header tag
  
          - 'warnings' - will be overwritten with a string containing the warnings
  
          - 'settings' - dict of settings to pass in to Docutils, with priority
docstring_summary: render HTML from a reStructuredText string
docstring_tokens: render HTML from a reStructuredText string
function: def HTML(src,
           writer='html4css1',
           report_level=1,
           stylesheet='default.css',
           input_encoding=default_input_encoding,
           output_encoding=default_output_encoding,
           language_code=default_lang,
           initial_header_level = initial_header_level,
           warnings = None,
           settings = {}):
      """ render HTML from a reStructuredText string
  
          - 'src'  -- string containing a valid reST document
  
          - 'writer' -- docutils writer
  
          - 'report_level' - verbosity of reST parser
  
          - 'stylesheet' - Stylesheet to be used
  
          - 'input_encoding' - encoding of the reST input string
  
          - 'output_encoding' - encoding of the rendered HTML output
  
          - 'report_level' - verbosity of reST parser
  
          - 'language_code' - docutils language
  
          - 'initial_header_level' - level of the first header tag
  
          - 'warnings' - will be overwritten with a string containing the warnings
  
          - 'settings' - dict of settings to pass in to Docutils, with priority
  
      """
      parts, warning_stream = render(src,
                                     writer = writer,
                                     report_level = report_level,
                                     stylesheet = stylesheet,
                                     input_encoding = input_encoding,
                                     output_encoding = output_encoding,
                                     language_code=language_code,
                                     initial_header_level = initial_header_level,
                                     settings = settings)
  
      header = '<h%(level)s class="title">%(title)s</h%(level)s>\n' % {
                    'level': initial_header_level,
                    'title': parts['title'],
               }
  
      body = '%(docinfo)s%(body)s' % {
                    'docinfo': parts['docinfo'],
                    'body': parts['body'],
               }
  
      if parts['title']:
          output = header + body
      else:
          output = body
  
      warnings = ''.join(warning_stream.messages)
  
      return output.encode(output_encoding)
function_tokens: def HTML ( src , writer = 'html4css1' , report_level = 1 , stylesheet = 'default.css' , input_encoding = default_input_encoding , output_encoding = default_output_encoding , language_code = default_lang , initial_header_level = initial_header_level , warnings = None , settings = { } ) : parts , warning_stream = render ( src , writer = writer , report_level = report_level , stylesheet = stylesheet , input_encoding = input_encoding , output_encoding = output_encoding , language_code = language_code , initial_header_level = initial_header_level , settings = settings ) header = '<h%(level)s class="title">%(title)s</h%(level)s>\n' % { 'level' : initial_header_level , 'title' : parts [ 'title' ] , } body = '%(docinfo)s%(body)s' % { 'docinfo' : parts [ 'docinfo' ] , 'body' : parts [ 'body' ] , } if parts [ 'title' ] : output = header + body else : output = body warnings = '' . join ( warning_stream . messages ) return output . encode ( output_encoding )