gatsby-remark-double-parenthesis-link
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

gatsby-remark-double-parenthesis-link

Transform ((block Id)) into [Link to block](idToURL('block Id')).

An example site for using this plugin is at https://mathieudutour.github.io/gatsby-digital-garden/

Installation

npm install gatsby-remark-double-parenthesis-link

Usage

Add the plugin to your Gatsby config:

{
  resolve: `gatsby-plugin-mdx`,
  options: {
    gatsbyRemarkPlugins: [
      {
        resolve: `gatsby-remark-double-parenthesis-link`,
      },
    ],
  },
}

By default, the plugin will resolve the url with:

(id: string) => `/${slugify(id)}`;

You can override this behavior by passing a idToURL option.

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i gatsby-remark-double-parenthesis-link

Weekly Downloads

11

Version

0.1.5

License

MIT

Unpacked Size

4.11 kB

Total Files

4

Last publish

Collaborators

  • mathieudutour