No gardener puts obviously diseased plant material in the compost, for one. Unless you’re hot composting, the environment isn’t going to kill pathogens. So, no composting leaves with powdery mildew.
For everything else, go right ahead. If it’s not obviously diseased, the composting process should take care of whatever minimal pathogenic load there was.
What’s your view of composting kitchen waste and using it in vegetable garden? That would contain same disease vectors?
No gardener puts obviously diseased plant material in the compost, for one. Unless you’re hot composting, the environment isn’t going to kill pathogens. So, no composting leaves with powdery mildew. For everything else, go right ahead. If it’s not obviously diseased, the composting process should take care of whatever minimal pathogenic load there was.