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-replace

Npm version Npm downloads MIT license PRs welcome


gatsby-remark-replace is a Gatsby remark plugin to replace text in Markdown content and frontmatter

Usage

  1. Download gatsby-remark-replace from the NPM registry:
yarn add gatsby-remark-replace
  1. Add the plugin to your gatsby-config.js file
module.exports = {
    plugins: [
        {
            resolve: "gatsby-transformer-remark",
            options: {
                plugins: [
                    {
                        resolve: "gatsby-remark-replace",
                        options: {
                            items: [
                                {from: "/uploads/", to: "../_uploads/"},
                                {from: "{age}", to: "20"},
                            ],
                        },
                    },
                ],
            },
        },
    ],
}

Contributing

  • ⇄ Pull/Merge requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.
© 2022 Gatsby, Inc.