code: def parse(text):
      
      rv = {}
      m = META.match(text)
  
      while m:
          key = m.group(1)
          value = m.group(2)
          value = INDENTATION.sub('\n', value.strip())
          rv[key] = value
          text = text[len(m.group(0)):]
          m = META.match(text)
  
      return rv, text
docs: Parse the given text into metadata and strip it for a Markdown parser.
  
      :param text: text to be parsed