Make sure that you eat lots of nutrient-dense foods such as whole grains, low-fat dairy and brightly colored fruits and vegetables, both for your health and your baby's.
Researchers don't know why a plant-based diet seems to have a protective effect, but one likely reason is the nutrient profile of vegetarian diets, which tend to be higher in fiber and lower in saturated fat.