In a food processor, pulse flour, cocoa powder, powdered sugar, and cold butter until crumbly; add egg yolk and pulse until dough clumps.
Press dough evenly into a 9-inch tart pan with removable bottom; chill for 30 minutes.
Preheat oven to 350°F (175°C). Line tart with parchment paper, fill with pie weights, and bake for 15 minutes; remove weights and bake 5 more minutes; cool completely.
Heat heavy cream in a saucepan until simmering; pour over chopped chocolate and softened butter; let sit for 2 minutes, then whisk until silky smooth.
Stir in peppermint extract, pour ganache into cooled tart crust, and refrigerate for 1 hour.
Sprinkle crushed candy canes around the outer perimeter of the tart, then chill for 2 more hours until firm before slicing.