Skip to content

Commit

Permalink
fix(addon-docs): pass remark plugins to mdx loader
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jul 19, 2022
1 parent e9655df commit b6b6cf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/docs/src/preset.ts
Expand Up @@ -54,6 +54,7 @@ export async function webpack(
} = options;

const mdxLoaderOptions = {
// whether to skip storybook files, useful for docs only mdx or md files
skipCsf: true,
remarkPlugins: [remarkSlug, remarkExternalLinks],
};
Expand Down Expand Up @@ -112,6 +113,10 @@ export async function webpack(
},
{
loader: mdxLoader,
options: {
...mdxLoaderOptions,
skipCsf: false,
},
},
],
},
Expand Down

0 comments on commit b6b6cf1

Please sign in to comment.