render output to markdown format