mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Update post
* update algolia
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import remarkFrontmatter from 'remark-frontmatter';
|
||||
import mdx from '@next/mdx';
|
||||
import rehypePrism from '@mapbox/rehype-prism';
|
||||
// import remarkToc from 'remark-toc';
|
||||
import composePlugins from 'next-compose-plugins';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
@ -10,11 +9,7 @@ const composedConfig = composePlugins([
|
||||
mdx({
|
||||
extension: /\.mdx?$/,
|
||||
options: {
|
||||
remarkPlugins: [
|
||||
remarkFrontmatter,
|
||||
// [remarkToc, { maxDepth: 2 }],
|
||||
remarkGfm,
|
||||
],
|
||||
remarkPlugins: [remarkFrontmatter, remarkGfm],
|
||||
rehypePlugins: [rehypePrism, rehypeSlug],
|
||||
providerImportSource: '@mdx-js/react',
|
||||
},
|
||||
|
Reference in New Issue
Block a user