At the beginning of a relationship, things are often kept pretty light and bright. At some point, though, you wear out those surface-level conversations and real life starts to set in. Although it may not be super obvious from the get-go, you may realize that you and your partner don't agree on important issues. It can be difficult and disappointing to get to this place, but you may need to know what to do if you realize your partner is a misogynist. Because misogyny, like so many other -isms and issues, isn't always apparent right away.
Honestly, you could be in pretty deep, your feelings and heart completely entangled, before coming to the realization that a joke wasn't a one-off or as lighthearted as it may have seemed at the time. It can be difficult to confront or call out misogyny sometimes, especially if the situation is a bit complicated or you feel like you have a lot on the line. If your head and your heart are at odds, it can be difficult to sort out exactly how you feel or what your next move should be.
Although this may mean that the relationship has run its course, it's also possible that with a little bit of education and more understanding (and maybe a little patience on your part), your partner come around and leave misogyny behind.