You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a group of images as HTML, gatsby-remark-copy-linked-files will copy them until it finds one that is included in the ignore extensions list.
For instance:
<div><figure><imgsrc="../media/pages/color-ui/dark-theme-do-3.jpg" /><figcaptionclass="ibm-type-b">White Overflow Menu on Gray 10 Card</figcaption></figure><figure><imgsrc="../media/pages/color-ui/dark-theme-dont-1.svg" /><figcaptionclass="ibm-type-b">Avoid use of midtones</figcaption></figure></div>
In the previous block the plugin will find the jpg which is included in the ignore extensions array by default since it gets handled by remark images, and it will return from the entire div node instead of continuing to find the svg that need to be copied. The culprit to this issue is in these line:
Description
If you have a group of images as HTML, gatsby-remark-copy-linked-files will copy them until it finds one that is included in the ignore extensions list.
For instance:
In the previous block the plugin will find the
jpg
which is included in the ignore extensions array by default since it gets handled by remark images, and it will return from the entirediv
node instead of continuing to find thesvg
that need to be copied. The culprit to this issue is in these line:gatsby/packages/gatsby-remark-copy-linked-files/src/index.js
Lines 218 to 220 in 1f8ef19
Proposed solution:
Where it should check if the file is not in the list and take action and if it is in the list not return but continue the loop, like so:
The text was updated successfully, but these errors were encountered: