mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-25 16:05:39 -04:00
switch to shiki for syntax highlighting
This commit is contained in:
+13
-1
@@ -143,7 +143,19 @@ const withMDX = createMDX({
|
||||
rehypePlugins: [
|
||||
mdxPlugins.rehypeUnwrapImages,
|
||||
mdxPlugins.rehypeSlug,
|
||||
[mdxPlugins.rehypePrism, { ignoreMissing: true }],
|
||||
[
|
||||
mdxPlugins.rehypePrettyCode,
|
||||
{
|
||||
theme: {
|
||||
light: "material-theme-lighter",
|
||||
dark: "material-theme-darker",
|
||||
},
|
||||
bypassInlineCode: true,
|
||||
defaultLang: "plaintext",
|
||||
grid: false,
|
||||
keepBackground: false,
|
||||
},
|
||||
],
|
||||
mdxPlugins.rehypeMdxImportMedia,
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user