File tree Expand file tree Collapse file tree 4 files changed +150
-1
lines changed Expand file tree Collapse file tree 4 files changed +150
-1
lines changed Original file line number Diff line number Diff line change 4343 "react-dom" : " ^18.2.0" ,
4444 "react-markdown" : " ^9.0.1" ,
4545 "rehype-slug" : " ^6.0.0" ,
46+ "rehype-stringify" : " ^10.0.1" ,
4647 "remark-comment" : " ^1.0.0" ,
4748 "remark-frontmatter" : " ^5.0.0" ,
4849 "remark-gfm" : " ^4.0.1" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import fs from "fs";
1111import { URL } from 'url' ;
1212import remarkRehype from "remark-rehype" ;
1313import rehypeSlug from "rehype-slug" ;
14+ import rehypeStringify from "rehype-stringify" ;
1415
1516import { defaultProcessor } from "./markdown.js" ;
1617
@@ -68,6 +69,7 @@ const processor = defaultProcessor
6869 . use ( remarkRehype )
6970 . use ( rehypeSlug )
7071 . use ( rehypeHeaders )
72+ . use ( rehypeStringify )
7173
7274const pathname = new URL ( '.' , import . meta. url ) . pathname ;
7375const __dirname = process . platform !== 'win32' ? pathname : pathname . substring ( 1 )
Original file line number Diff line number Diff line change 22 * This script is used for generating the table of contents for prose
33 * text documents
44 */
5- import unified from "unified" ;
5+ import { unified } from "unified" ;
66import glob from "glob" ;
77import path from "path" ;
88import fs from "fs" ;
You can’t perform that action at this time.
0 commit comments