code: def header(
              self,
              text,
              level):
          
          m = self.reWS.match(text)
  
          prefix = m.group(1)
          text = m.group(2)
          suffix = m.group(3)
  
          return "#" * level + " %(text)s  \n" % locals()
docs: *convert plain-text to MMD header*
  
          **Key Arguments:**
              - ``text`` -- the text to convert to MMD header
              - ``level`` -- the header level to convert the text to
  
          **Return:**
              - ``header`` -- the MMD header
  
          **Usage:**
  
              To convert a text MMD header:
  
              .. code-block:: python
  
                  header = md.header(" This is my header  ", level=3)
                  print header
  
                  # OUTPUT:
                  # ### This is my header
                  #