Skip to content

Commit

Permalink
fix(gatsby-remark-images): GATSBY_EMPTY_ALT figcaption generation (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
nategiraudeau committed Oct 30, 2021
1 parent 79494f5 commit 1a73b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-remark-images/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ module.exports = (
}
break
case `alt`:
if (node.alt === EMPTY_ALT || overWrites.alt === EMPTY_ALT) {
return ``
}
if (overWrites.alt) {
return overWrites.alt
}
Expand Down

0 comments on commit 1a73b01

Please sign in to comment.