The ExcertParser has the features to not strip out the images and links from the excerpt. This change enables site admins to turn this feature on or off. The default behaviour remains the same.
This pull request has been mentioned on Discourse Meta. There might be relevant details there: