Apply markdown formatting