# gatsby-remark-smartypants

> Use retext-smartypants to auto-enhance typography of markdown

Latest version **6.16.0** (published 2026-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-remark-smartypants
pnpm add gatsby-remark-smartypants
yarn add gatsby-remark-smartypants
bun add gatsby-remark-smartypants
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 6.16.0 |
| Published | 2026-01-26 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 <26 |
| Dependencies | 4 |
| Unpacked size | 35.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyle Mathews |
| Maintainers | pieh, kathmbeck, serhalp-netlify, mlgualtieri-gatsby, fk, tylerbarnes, daniellewgatsby |
| Keywords | gatsby, gatsby-plugin, smartypants |

## Links

- npm: https://www.npmjs.com/package/gatsby-remark-smartypants
- Repository: https://github.com/gatsbyjs/gatsby
- Homepage: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-smartypants#readme
- Issues: https://github.com/gatsbyjs/gatsby/issues
- npm.io page: https://npm.io/package/gatsby-remark-smartypants

## Dependencies (4)

- [retext](https://npm.io/package/retext.md) ^7.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.20.13
- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^2.0.3
- [retext-smartypants](https://npm.io/package/retext-smartypants.md) ^4.0.0

## Recent versions

- 6.16.0 (latest) — 2026-01-26
- 6.17.0-next.0 (next) — 2025-11-27
- 6.17.0-react19.1 (react19) — 2025-11-26
- 4.12.0 (latest-v3) — 2022-12-07
- 5.25.0 (latest-v4) — 2022-12-07
- 6.0.0-alpha-drupal-proxyurl.14 (drupal-proxyurl) — 2022-11-22
- 5.14.0-alpha-transformer-json.26 (alpha-transformer-json) — 2022-10-12
- 6.0.0-alpha-v5.d20221012t101120.57 (alpha-v5) — 2022-10-12
- 5.23.0-alpha-a5-peer.70 (alpha-a5-peer) — 2022-09-14
- 5.23.0-alpha-preview-gh-api.26 (preview-gh-api) — 2022-09-08
- 5.23.0-alpha-9689ff.25 (alpha-9689ff) — 2022-08-31
- 5.18.0-alpha-drupal-self-reference.18 (drupal-self-reference) — 2022-07-19
- 5.15.0-alpha-wp-image-cdn-auth.48 (wp-image-cdn-auth) — 2022-05-20
- 5.8.0-alpha-image-service.24 (image-service) — 2022-02-10
- 5.6.0-alpha-ts-jit.60 (alpha-ts-jit) — 2022-01-21
- … 390 more at https://npm.io/package/gatsby-remark-smartypants/versions

## README

# gatsby-remark-smartypants

Replaces “dumb” punctuation marks with “smart” punctuation marks using the
[retext-smartypants](https://github.com/retextjs/retext-smartypants) plugin.

## Install

`npm install gatsby-remark-smartypants`

## How to use

```javascript
// 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
[retext-smartypants API](https://github.com/retextjs/retext-smartypants#api).

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

---
_Source: https://npm.io/package/gatsby-remark-smartypants · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
