highlight.js -> prism (#730)

This commit is contained in:
2022-01-10 19:10:19 -05:00
committed by GitHub
parent 3864d18ba3
commit 78967815e1
11 changed files with 211 additions and 145 deletions
+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;