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