Buffered output for performance when printing Markdown files