Doxycycline while breastfeeding ?!?!? Help ?!?

TT

I told my dr I am breastfeeding and she prescribed me doxycycline antibiotics due to an infection I have. Is this safe while breastfeeding? I looked it up online and have mixed feelings about it! Should I just give my newborn formula while taking it ?! Anyone know ?