If the weeds have gone to seed, any seeds in the compost mix will likely germinate when you come to use the compost. These, you have to dispose of differently.
- Put the pulled weeds into a light-blocking sack for a week to make sure they don't have any energy to grow in the compost.
- Cut them up into small pieces to break their roots and leaves and encourage faster composting. A chipper is great for this if you have one, but I just use secateurs.
- Put the shredded weeds into a covered composter. You can bury them if the compost material if you don't have a cover.
After this kind of treatment, even the hardiest of dandelions should give up and compost properly. Provided you break up the roots, they shouldn't give you any problems.