Naming After Divorce
Question
According to Halacha, if a pregnant woman divorces the biological father of her baby while pregnant, what is the baby’s last name? How would it be determined in the scenario she gets married to another man, and what about if she is still single when she gives birth? Citations please