From 318f6ae9c3b63fa7cdaf48083c177dc2259120a7 Mon Sep 17 00:00:00 2001 From: mateonunez Date: Thu, 25 Jan 2024 10:45:27 -0500 Subject: [PATCH] chore(parser): remove all mdx plugins Signed-off-by: mateonunez --- lib/articles/parser.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/articles/parser.js b/lib/articles/parser.js index b93dc14..4fbc4df 100644 --- a/lib/articles/parser.js +++ b/lib/articles/parser.js @@ -5,8 +5,6 @@ import removeMarkdown from 'remove-markdown'; import readingTime from 'reading-time'; import config from 'lib/config'; import { serialize } from 'next-mdx-remote/serialize'; -import rehypeSlug from 'rehype-slug'; -import rehypePrism from 'rehype-prism-plus'; export function getArticleSlugs() { const fullPath = path.join(process.cwd(), './articles'); @@ -76,13 +74,8 @@ export async function getArticle({ slug }) { return article; } -const rehypePlugins = [[rehypeSlug], [rehypePrism, { ignoreMissing: true }]]; const serializeOptions = { parserFormatter: false, - mdxOptions: { - // remarkPlugins, - rehypePlugins, - }, } async function compileSource({ content }) {