Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-remark-dropbox-images

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-dropbox-images

Prepare urls in markdown sourced with gatsby-source-dropbox for gatsby-remark-images

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gatsby-remark-dropbox-images

npm version

This plugin resolves image tags in markdown files sourced with gatsby-source-dropbox. It currently only supports images in markdown body but not in frontmatter.

Requirements

The plugin depends on the following:

  • gatsby-transformer-sharp
  • gatsby-plugin-sharp
  • gatsby-source-dropbox
  • gatsby-transformer-remark
  • gatsby-remark-images

gatsby-source-dropbox option createFolderNodes needs to be set to true.

Installation

Yarn yarn add gatsby-remark-dropbox-image

Npm npm i -S gatsby-remark-dropbox-image

Configuration

gatsby-config.js needs to have at least the following:

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-dropbox`,
      options: {
        accessToken: `<Token>`,
        createFolderNodes: true,
      },
    },
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          `gatsby-remark-dropbox-images`,
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 1000, // You need to specify the maxWidth 
            },
          },
        ],
      },
    },
  ],
}

Keywords

FAQs

Package last updated on 06 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc