Preheat oven to 350°F (175°C) and line a cupcake pan with liners.
In a medium bowl, whisk together flour, baking powder, and salt.
In a large bowl, cream butter and sugar until light and fluffy.
Beat in eggs one at a time, then mix in vanilla extract.
Add dry ingredients alternating with buttermilk, mixing just until combined.
Gently fold in raspberries, being careful not to crush them.
Fill liners about two-thirds full.
Bake for 18–20 minutes, or until a toothpick inserted comes out clean.
Cool cupcakes completely on a wire rack.