fix: remove filterMetaString callback from rehypePrettyCode config

This commit is contained in:
2026-06-02 01:16:14 -05:00
parent 8a09181cae
commit 2d2ee05025

View File

@@ -7,7 +7,6 @@ import rehypeSlug from 'rehype-slug'
import rehypeExternalLinks from 'rehype-external-links' import rehypeExternalLinks from 'rehype-external-links'
import rehypeAutolinkHeadings from 'rehype-autolink-headings' import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypePrettyCode from 'rehype-pretty-code' import rehypePrettyCode from 'rehype-pretty-code'
import { transformerCopyButton } from '@rehype-pretty/transformers'
import rehypeKatex from 'rehype-katex' import rehypeKatex from 'rehype-katex'
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
@@ -28,9 +27,6 @@ const withMDX = createMDX({
keepBackground: false, keepBackground: false,
lineNumbers: true, lineNumbers: true,
grid: true, grid: true,
transformers: [
transformerCopyButton({ visibility: 'hover', feedbackDuration: 2500 }),
],
}], }],
rehypeKatex, rehypeKatex,
], ],