Skip to content

Commit e728d49

Browse files
committed
chore: remark-autolink-headings -> rehype-autolink-headings.
1 parent 5afb36b commit e728d49

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/build.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { unified } from 'unified';
77
import rehypeAttrs from 'rehype-attr';
88
import * as rehypePrism from '@mapbox/rehype-prism';
99
import rehypeRaw from 'rehype-raw';
10+
import rehypeSlug from 'rehype-slug';
11+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
1012
import stringify from 'rehype-stringify';
11-
import remarkSlug from 'remark-slug'
1213
import remarkParse from 'remark-parse';
13-
import remarkAutolinkHeadings from 'remark-autolink-headings';
1414
import remark2rehype from 'remark-rehype';
1515
import _ from 'colors-cli/toxic.js';
1616

@@ -211,10 +211,10 @@ const cssPath = path.resolve(deployDir, 'css', 'index.css');
211211
function markdownToHTML(str) {
212212
return unified()
213213
.use(remarkParse)
214-
.use(remarkSlug)
215-
.use(remarkAutolinkHeadings)
216214
.use(remark2rehype, { allowDangerousHtml: true })
217215
.use(rehypeRaw)
216+
.use(rehypeSlug)
217+
.use(rehypeAutolinkHeadings)
218218
.use(rehypePrism.default)
219219
.use(rehypeAttrs, { properties: 'attr' })
220220
.use(stringify)

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"unified": "10.1.0",
3030
"rehype-stringify": "9.0.1",
3131
"rehype-raw": "6.0.0",
32+
"rehype-slug": "5.0.0",
33+
"rehype-autolink-headings": "6.0.0",
3234
"remark-parse": "10.0.0",
33-
"remark-slug": "7.0.0",
3435
"remark-rehype": "9.0.0",
35-
"remark-autolink-headings": "7.0.0",
3636
"rehype-attr": "1.4.2",
3737
"archiver": "5.3.0",
3838
"colors-cli": "1.0.27",

0 commit comments

Comments
 (0)