Replaces “dumb” punctuation marks with “smart” punctuation marks using the retext-smartypants plugin.
npm install --save gatsby-remark-smartypants
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [`gatsby-remark-smartypants`],
},
},
];
Valid remark-smartypants
options may passed to the plugin. For more on vaild
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",
},
},
],
},
},
];