/gatsby-remark-replace

Gatsby plugin to replace in Markdown content and frontmatter

Primary LanguageJavaScriptMIT LicenseMIT

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.