Researchers in Denmark had 18 nursing moms swallow capsules with different flavors such as mint and licorice.
They later tested the milk and found the chemical compound associated with the flavors.
Many children don't end up sharing their mother's exact tastes in food. But researchers suspect the changes in flavor early on make breast-fed infants more likely to try new foods than bottle-fed infants.
There's more on this study in the journal "New Scientist."