code: def to_text(self):
          
          if self.text is None:
              return
  
          level = '*' * self.level
          return '%s%s\n' % (level, self.text)
docs: Render a Heading MessageElement as plain text
  
          :returns: The plain text representation of the Heading MessageElement.