Skip to content

Commit

Permalink
fix: custom remark plugin not work
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Oct 9, 2022
1 parent fb7442d commit d790b4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node/plugin-mdx/pluginMdxRollup.ts
Expand Up @@ -30,7 +30,8 @@ export async function pluginMdxRollup(
[
remarkPluginNormalizeLink,
{ base: config.base || '/', enableSpa: config.enableSpa }
]
],
...(config.markdown?.remarkPlugins || [])
],
rehypePlugins: [
rehypePluginSlug,
Expand Down Expand Up @@ -60,7 +61,8 @@ export async function pluginMdxRollup(
highlighter: await shiki.getHighlighter({ theme: 'nord' })
}
],
rehypePluginPreWrapper
rehypePluginPreWrapper,
...(config.markdown?.rehypePlugins || [])
]
}) as Plugin;
}

0 comments on commit d790b4e

Please sign in to comment.