Correctly outputting markdown in preview