correct markdown parsing