1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-05 09:05:39 -05:00

fix remark errors by completely ignoring them so plugins can finally be bumped

This commit is contained in:
2024-01-09 13:47:19 -05:00
parent 875a256db9
commit 779775d85a

View File

@@ -16,8 +16,10 @@ export const compileNote = async (slug: string): Promise<NoteWithSource> => {
parseFrontmatter: false, parseFrontmatter: false,
mdxOptions: { mdxOptions: {
remarkPlugins: [ remarkPlugins: [
// @ts-ignore
[remarkGfm, { singleTilde: false }], [remarkGfm, { singleTilde: false }],
[ [
// @ts-ignore
remarkSmartypants, remarkSmartypants,
{ {
quotes: true, quotes: true,
@@ -26,9 +28,15 @@ export const compileNote = async (slug: string): Promise<NoteWithSource> => {
ellipses: false, ellipses: false,
}, },
], ],
// @ts-ignore
[remarkUnwrapImages], [remarkUnwrapImages],
], ],
rehypePlugins: [[rehypeSlug], [rehypePrism, { ignoreMissing: true }]], rehypePlugins: [
// @ts-ignore
[rehypeSlug],
// @ts-ignore
[rehypePrism, { ignoreMissing: true }],
],
}, },
}); });