more work on pandoc functions