mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-21 20:55:56 -04:00
highlight.js -> prism (#730)
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user