highlight.js -> prism (#730)

This commit is contained in:
jake authored and GitHub committed 2022-01-10 19:10:19 -05:00
1 parent 3864d18ba3
commit 78967815e1
11 files changed
+211 -145

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ import remarkGfm from "remark-gfm";
import rehypeExternalLinks from "rehype-external-links";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeHighlight from "rehype-highlight";
import rehypePrism from "rehype-prism-plus";
import type { NoteMetaType, NoteType } from "../types";
@@ -68,7 +68,7 @@ export const getNote = async (slug: string): Promise<NoteType> => {
test: ["h2", "h3"],
},
],
[rehypeHighlight, {}],
[rehypePrism, { ignoreMissing: true }],
];
return options;