Gatsby Book Launch

“The missing guide to the modern web” launches on Thursday, Sep 29th: Modular: The Web’s New Architecture

ContactSign Up for Free
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-----'
            },
          },
        },
      ],
    },
  },
];
© 2022 Gatsby, Inc.