convert a tree of files using pandoc