@idmyn/gatsby-remark-wiki-link

1.0.0 • Public • Published

@idmyn/gatsby-remark-wiki-link

A thin wrapper over remark-wiki-link for use with Gatsby.

Installation

npm install @idmyn/gatsby-remark-wiki-link

Usage

All options passed to this plugin are forwarded to remark-wiki-link. You can view its supported configuration options here.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [{
          resolve: "@idmyn/gatsby-remark-wiki-link",
          options: {
            pageResolver: (name) => [name.replace(/ /g, '-').toLowerCase()],
            hrefTemplate: (permalink) => `/${permalink}`
          }
        }],
      }
    },
  ],
};

Backlinks

For backlinks, check out @idmyn/gatsby-remark-backlinks.

Package Sidebar

Install

npm i @idmyn/gatsby-remark-wiki-link

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.97 kB

Total Files

4

Last publish

Collaborators

  • idmyn