cleans pandoc command of ^C