This is a very good question and not something i have really considered, though considering that having children isnt exactly the first thing on my mind, it isnt that strange.
In the future i do want children, i think... and i wish i could protect them from everything horrible and evil in the world (and at times i think, i wouldnt want to raise children in the current world we live in). However when it comes to mental illnesses you can't always protect your child as 1) they can be genetic, unfortunatly and 2) society and societal pressures and norms can cause stress, anxiety, fear, pressure and 3) there can be triggers and catalsyts that cause a mental illness to develop and they cant be avoided or predicted.
When i have children i will make sure to be very body positive (just like now). Not talk badly about anyones body and never talk badly about my own body. Teach my child/children from an early age to love their body and appreciate their body, make them want to be active and run around and play and use their body. And also teach my child/children from an early age to love healthy food (and yes i will raise my children vegan, however it will always be their choice if they want to eat meat and dairy when they are older and can make those choices for themselves.)