storybook/docs/snippets/common/storybook-main-config-remark-options.js.mdx

29 lines
546 B
Plaintext

```js
// .storybook/main.js
import remarkGfm from 'remark-gfm';
export default {
stories: ['../src/**/*.stories.@(js|ts)'],
addons: [
// Other addons go here
{
name: '@storybook/addon-docs',
options: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
},
],
framework: {
// Replace your-framework with the name of your framework (e.g., react-webpack5, vue3-webpack5)
name: '@storybook/your-framework',
options: {},
},
docs: {
autodocs: 'tag',
},
};
```