Wrap the tofu with a paper towel to remove excess moisture.
Blend the tofu and milk smoothly in a blender.
In a bowl, combine the blended tofu and finely crushed dark chocolate, then melt together using a double boiler or microwave.
Add sugar, cocoa powder, and vanilla extract, and mix well.
Sift in the flour and baking powder, then gently fold with a spatula.
Pour the batter into a mold lined with parchment paper.
Bake in a preheated oven at 170°C (338°F) for 25 minutes.
Let it cool completely, remove from the mold, and cut into serving pieces.