How to configure and use pandoc