Update post

* update algolia
This commit is contained in:
Defectink
2022-04-18 11:14:22 +08:00
parent b1426e7df4
commit 0fd635f2b2
7 changed files with 111 additions and 46 deletions

View File

@ -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',
},