Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-remark-encrypted-block

Adds an encrypted block to MarkdownRemark using remark-encrypted-block.

Install

npm install --save gatsby-remark-encrypted-block

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: "gatsby-remark-encrypted-block",
          options: {
            blocks: {
              key: '-----BEGIN RSA PUBLIC KEY-----${pubKey}-----END RSA PUBLIC KEY-----'
            },
          },
        },
      ],
    },
  },
];
© 2023 Gatsby, Inc.