Skip to content

Commit

Permalink
chore(parser): remove all mdx plugins
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Jan 25, 2024
1 parent 6a2011f commit 318f6ae
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/articles/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 }) {
Expand Down

0 comments on commit 318f6ae

Please sign in to comment.