code: def add_section(self, name=None, anchor=None, description='', comment='', helptext='', plot='', content='', autoformat=True, autoformat_type='markdown'):
          
  
          # Default anchor
          if anchor is None:
              if name is not None:
                  nid = name.lower().strip().replace(' ','-')
                  anchor = '{}-{}'.format(self.anchor, nid)
              else:
                  sl = len(self.sections) + 1
                  anchor = '{}-section-{}'.format(self.anchor, sl)
  
          # Skip if user has a config to remove this module section
          if anchor in config.remove_sections:
              logger.debug("Skipping section '{}' because specified in user config".format(anchor))
              return
  
          # Sanitise anchor ID and check for duplicates
          anchor = report.save_htmlid(anchor)
  
          # See if we have a user comment in the config
          if anchor in config.section_comments:
              comment = config.section_comments[anchor]
  
          # Format the content
          if autoformat:
              if len(description) > 0:
                  description = textwrap.dedent(description)
                  if autoformat_type == 'markdown':
                      description = markdown.markdown(description)
              if len(comment) > 0:
                  comment = textwrap.dedent(comment)
                  if autoformat_type == 'markdown':
                      comment = markdown.markdown(comment)
              if len(helptext) > 0:
                  helptext = textwrap.dedent(helptext)
                  if autoformat_type == 'markdown':
                      helptext = markdown.markdown(helptext)
  
          # Strip excess whitespace
          description = description.strip()
          comment = comment.strip()
          helptext = helptext.strip()
  
          self.sections.append({
              'name': name,
              'anchor': anchor,
              'description': description,
              'comment': comment,
              'helptext': helptext,
              'plot': plot,
              'content': content,
              'print_section': any([ n is not None and len(n) > 0 for n in [description, comment, helptext, plot, content] ])
          })
docs: Add a section to the module report output