convert metadata to pandoc header format