Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
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.
© 2024 Gatsby, Inc.