Speaking from the perspective of a middle school lit teacher, I don't feel this teacher is teaching in a way that fosters ideas that go beyond the spectrum of her own beliefs. This doesn't foster a very healthy environment to learn in and I can tell your classroom culture is suffering. My advice to you, play by the rules while you are in her class, do your assignments to the best of your ability, and continue to engage in great discussions of the book in class (regardless if she agrees with you).
However, tread carefully, you are allowed to have your own analysis and interpretations of the book and the author's meaning. Just make sure if you write about these for assignments, be sure to provide clear evidence from the text that suggests your argument is plausible. If you do this effectively, you will get a good grade regardless of her own personal feelings about the text. If there is textual evidence, your analysis cannot be wrong and you cannot receive a bad grade. Be sure to be respectful and mannerly when engaging in classroom discussions about the text.
Perhaps, be as mannerly and polite as possible around this teacher. As a teacher I can tell you that not every student is mannerly and respectful, it is certainly notable when students are respectful and kind. Even if you disagree with her, as long as you are able to provide evidence from the text or even outside research suggesting your analysis is on-point or plausible -- she cannot say you are wrong (and if she does, then she is wrong).
I'm not going to judge another teacher, remember that she is human too and the way she treats others has a reflection of how she may be feeling on the inside. Perhaps, there have been a lot of students that have been unkind to her or disrespectful, or many something more is going on (beyond the classroom). Remember that society teaches us - and instills within us - an insane amount of gender roles and constant reminders and reinforcements of those gender roles (in media, school, work, social life, television, etc.). She may not have had the opportunity to learn about this in college or otherwise and this is probably why she is reinforcing those roles.