Converts to markdown
        :return: item in markdown format

def to_markdown(self):
        """Converts to markdown
        :return: item in markdown format
        """
        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