Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix scripts
  • Loading branch information
cometkim committed Mar 11, 2025
commit 9faee32d6de314fb4bd3cb455e637376f638a8e0
146 changes: 146 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-comment": "^1.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
Expand Down
2 changes: 2 additions & 0 deletions scripts/extract-indices.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import fs from "fs";
import { URL } from 'url';
import remarkRehype from "remark-rehype";
import rehypeSlug from "rehype-slug";
import rehypeStringify from "rehype-stringify";

import { defaultProcessor } from "./markdown.js";

Expand Down Expand Up @@ -68,6 +69,7 @@ const processor = defaultProcessor
.use(remarkRehype)
.use(rehypeSlug)
.use(rehypeHeaders)
.use(rehypeStringify)

const pathname = new URL('.', import.meta.url).pathname;
const __dirname = process.platform !== 'win32' ? pathname : pathname.substring(1)
Expand Down
2 changes: 1 addition & 1 deletion scripts/extract-tocs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This script is used for generating the table of contents for prose
* text documents
*/
import unified from "unified";
import { unified } from "unified";
import glob from "glob";
import path from "path";
import fs from "fs";
Expand Down
Loading