Socket
Book a DemoInstallSign in
Socket

gatsby-remark-gitlab

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-gitlab

remark plugin to autolink references like in GitLab issues, MRs, and comments

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

gatsby-remark-gitlab

ci npm

This is a plugin for gatsby-transformer-remark, which is in turn a plugin for GatsbyJS. This plugin is a simple wrapper around the remark-gitlab, which replace links to GitLab files in Markdown files with the actual content of those files, wrapped in Markdown code blocks that can optionally be further processed by a syntax highlighter (e.g. gatsby-remark-prismjs).

Installation

# npm:
npm install gatsby-remark-gitlab
# or yarn:
yarn add gatsby-remark-gitlab

Usage:

If you haven't already installed gatsby-transformer-remark, you should install it. If you want to have syntax highlighting by PrismJS, install gatsby-remark-prismjs as well.

Then in your gatsby-config.js, add this plugin to the list of plugins for gatsby-transformer-remark, preferably as the first one but definitely before gatsby-remark-prismjs:

module.exports = {
  // other configs ...
  plugins: [
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-gitlab',
            options: {
              repository: 'user/project',
              mentionStrong: true,
            }
          },
          // ... other plugins ...
          'gatsby-remark-prismjs',
        ]
      }
    }
  ]
}

For sample input and output, please refer to the usage section of remark-gitlab.

License

gatsby-remark-gitlab is released under the MIT License. See the bundled LICENSE file for details.

Keywords

gatsby

FAQs

Package last updated on 24 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