You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@storybook/addon-docs accepts some options. One of the main use cases is passing a custom remark plugin to support tables in markdown files. This is referenced in the Storybook documentation directly:
storybook-builder-rsbuild is implemented in a way that uses @storybook/addon-docs internally to leverage its webpack config. This prevents the mdxPluginOptions customization to work, as it never reach this hidden @storybook/addon-docs usage. Could we investigate how to pass this config from the user-land storybook config deep to the addon-docs present function?
Here is something that is working (tested locally):
@storybook/addon-docs
accepts some options. One of the main use cases is passing a customremark
plugin to support tables in markdown files. This is referenced in the Storybook documentation directly:storybook-builder-rsbuild
is implemented in a way that uses@storybook/addon-docs
internally to leverage its webpack config. This prevents themdxPluginOptions
customization to work, as it never reach this hidden@storybook/addon-docs
usage. Could we investigate how to pass this config from the user-land storybook config deep to theaddon-docs
present function?Here is something that is working (tested locally):
in user-land, pass some builder options
patch
storybook-builder-rsbuild
to forward those options toaddon-docs
Would you accept a pull request doing just that? I can propose it and also update the react-18 sandbox to show some
remark-gfm
support if needed.The text was updated successfully, but these errors were encountered: