New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

gatsby-remark-plugins-adapter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-plugins-adapter

A simple adapter that allows to use any remark plugin with Gatsby.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-remark-plugins-adapter

A simple adapter that allows to use any remark plugin with Gatsby.

Install

With npm:

npm install gatsby-remark-plugins-adapter unified

With yarn:

yarn add gatsby-remark-plugins-adapter unified

Use

Just add the plugin to the gatsby-transformer-remark plugins list and set its plugins to the remark plugins of your choice.

Example:

{
  resolve: `gatsby-transformer-remark`,
  options: {
    plugins: [
      {
        resolve: `gatsby-remark-plugins-adapter`,
        options: {
          plugins: [
            `remark-capitalize`,
            {
              resolve: `remark-uml`,
              options: { format: 'utxt' },
            },
          ],
        },
      },
    ],
  },
},

Configuration

The only available option is plugins, which is the array of the remark plugins to apply to the markdown AST.

It can contain both strings and objects containing a resolve field. You can use the object notation if you need to specify options for the remark plugin.

If one of the specified modules does not export by default the remark plugin, you can add to its options an importName field. 99% of the time you won't need to add this option manually.

Any other option specified will be proxied directly to the remark plugin.

License

MIT

FAQs

Package last updated on 14 Mar 2021

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