Skip to content

Commit

Permalink
Fix issue with rehypePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
abel-castro committed Aug 12, 2024
1 parent bc2c3d5 commit 97e9692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Unit Tests

on:
push:
Expand Down
19 changes: 3 additions & 16 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
// next.config.mjs
import withMDX from "@next/mdx";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
/** @type {import('next').NextConfig} */
const nextConfig = {};

const mdxOptions = {
extension: /\.mdx?$/,
options: {
rehypePlugins: [rehypeSlug, rehypeAutolinkHeadings, rehypeHighlight],
},
};

const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
};

export default withMDX(mdxOptions)(nextConfig);
export default nextConfig;

0 comments on commit 97e9692

Please sign in to comment.