code: def parse(self, debug=False):
          
          if self._parsed is None:
              try:
                  if self._mode == "html":
                      self._parsed = self.html(self._content, self._show_everything, self._translation)
                  else:
                      self._parsed = self.rst(self._content, self._show_everything, self._translation, debug=debug)
              except Exception as e:
                  if debug:
                      raise BaseException("Parsing failed") from e
                  else:
                      self._parsed = self._translation.gettext("<b>Parsing failed</b>: <pre>{}</pre>").format(html.escape(self._content))
          return self._parsed
docs: Returns parsed text