Just use pandoc to convert and not a buffer, then listen for close of spawned child