1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 18:45:32 -04:00

bump deps

This commit is contained in:
2024-10-11 10:48:21 -04:00
parent 89cd6780f9
commit f886a7cd0b
7 changed files with 821 additions and 1052 deletions

View File

@@ -69,7 +69,7 @@ export const getPostData = async (
// fully parses MDX into JS and returns *everything* about a post
export const compilePost = async (slug: string): Promise<PostWithSource> => {
const { remarkGfm, remarkSmartypants, remarkUnwrapImages, rehypeSlug, rehypePrism } = await import(
const { remarkGfm, remarkSmartypants, rehypeSlug, rehypeUnwrapImages, rehypePrism } = await import(
"./remark-rehype-plugins"
);
@@ -79,10 +79,8 @@ export const compilePost = async (slug: string): Promise<PostWithSource> => {
parseFrontmatter: false,
mdxOptions: {
remarkPlugins: [
// @ts-ignore
[remarkGfm, { singleTilde: false }],
[
// @ts-ignore
remarkSmartypants,
{
quotes: true,
@@ -91,15 +89,8 @@ export const compilePost = async (slug: string): Promise<PostWithSource> => {
ellipses: false,
},
],
// @ts-ignore
[remarkUnwrapImages],
],
rehypePlugins: [
// @ts-ignore
[rehypeSlug],
// @ts-ignore
[rehypePrism, { ignoreMissing: true }],
],
rehypePlugins: [rehypeSlug, rehypeUnwrapImages, [rehypePrism, { ignoreMissing: true }]],
},
});