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 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,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user