This demo uses gatsby-remark-images.
Order of plugins in your gatsby-config.js matters. Please add gatsby-remark-image-attributes after gatsby-remark-images or any other image processing plugins!

To use CSS properties like box-shadow, add them to the title!
;width=150px')
gatsby-remark-image-attributes wraps the result of other image processing plugins, aiming to reach body as the wrapper's offsetParent. Your styleAttributes will be set on that wrapper, not the <img>.
Compare the offsetParents of these two images to see the difference:
This is the ribbon in the upper-right corner of this page:
This plugin generates <img> tags and all browsers support SVG in <img> Elements.
 brightness(1.5) drop-shadow(2px 4px 6px black)')works  inline , too works
inline
, too
* or 
* in 
* lists 
Set the plugin's dataAttributes option to true to enable data- attributes.
'Inspect' this Element ⇒
to see data-some and data-another on it!
Unlike the styleAttributes, dataAttributes are always set on the <img> Element, never on the wrapper.
Titles without key=value; pairs behave according to the CommonMark standard; even when they start with a #.

To add an actual title="" attribute to the <img>, add an image attribute with key: title.
