-
1
Preheat oven to 350F.
-
2
Line 24 cups of standard muffin tins with paper liners.
-
3
Spray an 8-inch square pan with nonstick cooking spray.
-
4
Line bottom of pan with parchment paper; spray parchment.
-
5
In a mixing bowl, whisk together flour, baking powder, and salt.
-
6
Heat butter and chocolate in a heatproof mixing bowl set over (not in) a pan of simmering water, stirring occasionally, until melted.
-
7
Remove from heat, and add sugar.
-
8
With an electric mixer on medium-high speed, whisk until mixture is smooth.
-
9
Add eggs, one at a time, beating until each is incorporated, scraping down sides of bowl as needed.
-
10
Add vanilla, and beat 3 minutes more.
-
11
Reduce speed to low.
-
12
Gradually add two thirds of the flour mixture; beat until just combined.
-
13
Remove bowl from mixer.
-
14
Add remaining flour mixture, and fold in by hand, just to combine.
-
15
Divide batter evenly among lined cups, filling each two-thirds full.
-
16
Spread remaining batter in prepared baking pan, smoothing top with an offset spatula.
-
17
Bake, rotating tins and pan halfway through, until just set (but still feels soft), and top is shiny, about 17 minutes for cupcakes and 25 minutes for square pan.
-
18
Transfer tins and pan to wire racks and let cool completely before removing cupcakes and square.