blood & mucous in poop

our LO is 6 weeks old, monday we seen this in her diaper, called doc he said it sounds like a milk allergy and to switch to lactose free formula, so we did that. its now been 5 days on her new formula and its still happening.... her poop is now a peanut butter colour but still a bit of mucous and blood in it. what should we do??? ive been back to the clinic and they didn’t really know what to say....