Hi, your diet would affect the taste of your bm, but the nutrients in your bm would come from you rather than your diet. Meaning, if you eat poorly, your bm will still be nutritious as it draws the nutrients from your body, but the mother's health may be affected.
You cms refer to more info here:
http://kellymom.com/nutrition/mothers-diet/mom-diet/#nutrients
Read more