gatsby-remark-replace

1.0.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i gatsby-remark-replace

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.52 kB

Total Files

6

Last publish

Collaborators

  • cedricdelpoux