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:
@@ -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 }]],
|
||||
},
|
||||
});
|
||||
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user