mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Add table of contents style
This commit is contained in:
@ -10,7 +10,11 @@ const composedConfig = composePlugins([
|
||||
mdx({
|
||||
extension: /\.mdx?$/,
|
||||
options: {
|
||||
remarkPlugins: [remarkFrontmatter, remarkToc, remarkGfm],
|
||||
remarkPlugins: [
|
||||
remarkFrontmatter,
|
||||
() => remarkToc({ maxDepth: 2 }),
|
||||
remarkGfm,
|
||||
],
|
||||
rehypePlugins: [rehypePrism, rehypeSlug],
|
||||
providerImportSource: '@mdx-js/react',
|
||||
},
|
||||
|
Reference in New Issue
Block a user