Skip to content

Commit c5236f1

Browse files
committed
Use smart quotes
1 parent 9d5e460 commit c5236f1

File tree

3 files changed

+7911
-7568
lines changed

3 files changed

+7911
-7568
lines changed

next.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path')
22
const querystring = require('querystring')
33
const { createLoader } = require('simple-functional-loader')
44
const frontMatter = require('front-matter')
5+
const withSmartQuotes = require('@silvenon/remark-smartypants')
56
const { withTableOfContents } = require('./remark/withTableOfContents')
67
const { withSyntaxHighlighting } = require('./remark/withSyntaxHighlighting')
78
const { withProse } = require('./remark/withProse')
@@ -88,10 +89,9 @@ module.exports = withBundleAnalyzer({
8889
withTableOfContents,
8990
withSyntaxHighlighting,
9091
withNextLinks,
92+
withSmartQuotes,
9193
],
92-
rehypePlugins: [
93-
withLinkRoles,
94-
],
94+
rehypePlugins: [withLinkRoles],
9595
},
9696
},
9797
createLoader(function (source) {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@next/bundle-analyzer": "^9.4.4",
2020
"@next/mdx": "^10.0.1",
2121
"@reach/rect": "^0.10.5",
22+
"@silvenon/remark-smartypants": "^1.0.0",
2223
"@sindresorhus/slugify": "^1.1.0",
2324
"@svgr/webpack": "^5.4.0",
2425
"@tailwindcss/jit": "^0.1.18",

0 commit comments

Comments
 (0)