I followed this suggestion to slightly modify the rendering of the core/image block.
This works perfectly for images on pages. But I need the same rendering also in posts. But the method above does not seem to influence how posts are rendered. Do I have to register my block rendering specifically for posts somewhere?