Updated markdown output parsing