@draftbox-co/gatsby-rehype-inline-images

A Gatsby plugin to download inline images from Ghost

Usage no npm install needed!

<script type="module">
  import draftboxCoGatsbyRehypeInlineImages from 'https://cdn.skypack.dev/@draftbox-co/gatsby-rehype-inline-images';
</script>

README

gatsby-rehype-inline-images

Downloads images inside the content from Ghost CMS. This plugin is designed to work with a headless Ghost CMS only.

Install

yarn add gatsby-transformer-rehype @draftbox-co/gatsby-rehype-inline-images

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-rehype`,
    options: {
      plugins: [
        {
          resolve: `@draftbox-co/gatsby-rehype-inline-images`,
        },
      ],
    },
  },
]

Contributions

PRs are welcome! Consider contributing to this project if you are missing feature that is also useful for others.

Copyright & License

Copyright (c) 2020 Draftbox - Released under the MIT license.