Simple plugin for remark to enable the download of remote images.
npm install https://github.com/jammeryhq/gridsome-plugin-remark-image-download.git
# or
yarn add https://github.com/jammeryhq/gridsome-plugin-remark-image-download.git
//gridsome.config.js
module.exports = {
siteName: 'Gridsome',
plugins: [
//...
],
templates: {
//...
},
transformers: {
//Add markdown support to all file-system sources
remark: {
plugins: [
['@jammeryhq/gridsome-plugin-remark-image-download', {
targetPath: './src/assets/contentImages'
}]
]
}
}
}
You can find the complete documentation here: https://webstone.info/documentation/gridsome-plugin-remark-image-download