[gatsby-remark-images] Autolinking images overrides other links #6980
Labels
help wanted
Issue with a clear description that the community can help with.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
When using
gatsby-remark-images
, if thelinkImagesToOriginal
is set totrue
(which is the default), all images will be linked to their original, even if they're already wrapped in a link.Steps to reproduce
Load `http://localhost:8000/
Expected result
Images with links should preserve those links.
Actual result
Links are overridden with a link to the image. (Actually, they're double-wrapped, but the HTML parser drops the outer link.)
Environment
The text was updated successfully, but these errors were encountered: