1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 13:55:31 -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 }]],
},
});

View File

@@ -2,8 +2,8 @@ export { default as rehypePrism } from "rehype-prism-plus";
export { default as rehypeSanitize } from "rehype-sanitize";
export { default as rehypeSlug } from "rehype-slug";
export { default as rehypeStringify } from "rehype-stringify";
export { default as rehypeUnwrapImages } from "rehype-unwrap-images";
export { default as remarkGfm } from "remark-gfm";
export { default as remarkParse } from "remark-parse";
export { default as remarkRehype } from "remark-rehype";
export { default as remarkSmartypants } from "remark-smartypants";
export { default as remarkUnwrapImages } from "remark-unwrap-images";