ensure pandoc's output is displayed at the end of the buffer