Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader options lost when previewMdx2 is activated #11

Open
quantizor opened this issue May 31, 2022 · 0 comments
Open

Loader options lost when previewMdx2 is activated #11

quantizor opened this issue May 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@quantizor
Copy link

Describe the bug

I'm not 100% sure what's going on, but it appears the remark plugins that are set up in https://github.com/storybookjs/storybook/blob/4b47793e118f091971f2a453d486c5f01875811d/addons/docs/src/preset.ts#L55-L58 are not making it through to this new MDX2 loader.

When inspecting the options pulled from webpack in

const queryOptions = this.getOptions ? this.getOptions() : getOptions(this);
they're totally blank (skipCsf is missing, as well as the plugins...)

The effect of this is that header links in mdx no longer are applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants