Anna Duggar
During Sunday's episode of TLC's "Jill & Jessa: Counting On" Anna Duggar, photographed during a Caucus Night even in Johnston, Iowa, on Jan. 3, 2012, revealed her hope to remain married to Josh Duggar despite his scandalous past. Getty Images

Anna and Josh Duggar's marriage may not be picture perfect, but the mother-of-four isn't ready to give up on it just yet. The pair ran into some major issues in August when it came to light that Josh, the eldest of the Jim Bob and Michelle Duggar's 19 children, had been using popular cheating site Ashley Madison to arrange extramarital affairs. Anna, 27, has stuck by her husband's side through it all and according to comments made during a recent episode of TLC's "Jill & Jessa: Counting On," she won't be backing down anytime soon.

As was reported by People, the devout Christian opened up about her troubled marriage during episode 2 of the reality series. Anna shared with viewers that she had been well aware of Josh's molestation scandal, but that his cheating caught her off guard. She revealed that her husband had been honest with her about inappropriately touching five minors, but said it hurt her all the same to have to relive it — this time with scrutiny from the public. Anna went on to say that learning of her husband's infidelity, on the other hand, "felt like a bad dream." She called it a "betrayal," adding that it was, and will continue to be, incredibly difficult for them to work through. Anna shared that she decided not to act right away after learning the truth because she feared it would turn the already bad situation much worse. Despite her disappointment in Josh, Anna said it is her hope for "our marriage to be restored."

"In my heart, when I got married, I vowed to God first and then to Joshua, 'For better or for worse. 'Til death do we part,'" she said. "I pray that through all of this that I would be an extension of God's love to Joshua, that I would love him and forgive him and wait patiently and allow God to work through our hearts."

Anna wasn't the only one who struggled after learning of Josh's infidelity. His younger siblings, Jinger and Jana Duggar, also had a hard time forgiving and moving on. As previously reported Jinger, 21, said it was "unreal" for her to learn about her brother's cheating. She called it "one of the toughest times" she and the Duggar family had ever endured. Jana, 25, also admitted that it was "really difficult," revealing that she got the news from her mother, Michelle.

Similarly, Jill Dillard and Jessa Seewald admitted during Dec. 13's episode that they were too quick to defend their big brother. During the series premiere of their reality show the siblings looked back on their handling of both of Josh's scandals. Jessa, 23, called them "tough days," acknowledging that it's gotten easier to handle with time. Still, both she and Jill, 24, said they wished their brother had stopped them from championing for him until they knew the whole truth about his double life.

"Jill & Jessa: Counting On" airs Sundays at 8 p.m. EST on TLC.