Add support image lazyloading

This commit is contained in:
DefectingCat
2022-08-03 16:20:09 +08:00
parent b0e4dc8527
commit 005180fb99
12 changed files with 545 additions and 201 deletions

View File

@ -14,7 +14,10 @@ const composedConfig = composePlugins([
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkFrontmatter, remarkGfm],
rehypePlugins: [rehypePrism, rehypeSlug],
rehypePlugins: [
[rehypePrism, { alias: { vue: 'xml' }, ignoreMissing: true }],
rehypeSlug,
],
providerImportSource: '@mdx-js/react',
},
}),