Skip to main content
Official Plugin
View plugin on GitHub
See starters using this

gatsby-remark-smartypants

Replaces “dumb” punctuation marks with “smart” punctuation marks using the retext-smartypants plugin.

Install

npm install --save gatsby-remark-smartypants

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [`gatsby-remark-smartypants`],
    },
  },
]

Options

Valid remark-smartypants options may passed to the plugin. For more on valid options refer to the remark-smartypants API .

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: "gatsby-remark-smartypants",
          options: {
            dashes: "oldschool",
          },
        },
      ],
    },
  },
]

Edit this page on GitHub
Docs
Tutorials
Plugins
Blog
Showcase