class HTMLPipeline::NodeFilter::ImageMaxWidthFilter

This filter rewrites image tags with a max-width inline style and also wraps the image in an <a> tag that causes the full size image to be opened in a new tab.

The max-width inline styles are especially useful in HTML email which don’t use a global stylesheets.