mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Add support image lazyloading
This commit is contained in:
@ -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',
|
||||
},
|
||||
}),
|
||||
|
Reference in New Issue
Block a user