Skip to content

Commit 94a20eb

Browse files
committed
Use rehype-typeset for smart quotes
1 parent 966de63 commit 94a20eb

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/eleventy.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import eleventyRemark from '@fec/eleventy-plugin-remark'
33
import { rehype } from 'rehype'
44
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
55
import rehypeSlug from 'rehype-slug'
6+
import rehypeTypeset from 'rehype-typeset'
67
import remarkDirective from 'remark-directive'
78

89
import { remarkDirectives } from './remark/directives.js'
@@ -61,6 +62,7 @@ export default async function config(eleventyConfig) {
6162
value: '¶',
6263
},
6364
})
65+
.use(rehypeTypeset)
6466
.process(content)
6567

6668
newContent = result.toString()

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"rehype-autolink-headings": "7.1.0",
3535
"rehype-parse": "9.0.1",
3636
"rehype-slug": "6.0.0",
37+
"rehype-typeset": "0.0.3",
3738
"remark": "15.0.1",
3839
"remark-directive": "4.0.0",
3940
"shiki": "3.7.0",

pnpm-lock.yaml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)