-
|
Given I'd like to fetch the image, via a source plugin, and then similar what the docs describe, be able to query for the image data in the To do this, I imagine, I'd have to hook into one of the various Node API's, write a plugin, etc. and so I looked through the source code of the plugins:
mentioned in the docs linked earlier to try to see how thins were done, but I'm not able to make the connection. At the very least, I see that in on-create-node.js of I also see that which is how the image in the markdown file would ultimately be queried. For example: But I'm not able to find the code that does links things in between. My initial/current approach is to create my own markdown transformer plugin that does what I mentioned earlier and query those nodes instead of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This guide should help you: https://www.gatsbyjs.com/docs/how-to/images-and-media/preprocessing-external-images/ |
Beta Was this translation helpful? Give feedback.
This guide should help you: https://www.gatsbyjs.com/docs/how-to/images-and-media/preprocessing-external-images/