code: def to_markdown(self):
          
          if self.type == "text":
              return self.text
          elif self.type == "url" or self.type == "image":
              return "[" + self.text + "](" + self.attributes["ref"] + ")"
          elif self.type == "title":
              return "#" * int(self.attributes["size"]) + " " + self.text
  
          return None
docs: Converts to markdown
          :return: item in markdown format