You never have to go into Markarth, near the front gate, you can do the Sanguine quest to end up in the Temple of Dibella, and from there go to Understone Keep, and that way, you can skip Forsworn, Cidna Mine and STILL become Thane of Markarth.
Evielicious: *Open up a can of Woopass*.