before script for pandoc