consolidate pandoc functions into a package