fix: remove filterMetaString callback from rehypePrettyCode config
This commit is contained in:
@@ -7,7 +7,6 @@ import rehypeSlug from 'rehype-slug'
|
||||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
||||
import rehypePrettyCode from 'rehype-pretty-code'
|
||||
import { transformerCopyButton } from '@rehype-pretty/transformers'
|
||||
import rehypeKatex from 'rehype-katex'
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
@@ -28,9 +27,6 @@ const withMDX = createMDX({
|
||||
keepBackground: false,
|
||||
lineNumbers: true,
|
||||
grid: true,
|
||||
transformers: [
|
||||
transformerCopyButton({ visibility: 'hover', feedbackDuration: 2500 }),
|
||||
],
|
||||
}],
|
||||
rehypeKatex,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user