parse and store metadata from restructured text