Transforming R objects to Pandoc’s markdown