Skip to content

Commit 2b252c1

Browse files
authored
Fix Markdown Tables in Storybook (Netlify) (#1204)
* Convert .storybook/main.ts to ES6 module (ESM) * Downgrade remark-gfm to ^3.0.0
1 parent 2663f2f commit 2b252c1

File tree

4 files changed

+422
-416
lines changed

4 files changed

+422
-416
lines changed

.storybook/main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const remarkGfm = require('remark-gfm');
1+
import remarkGfm from 'remark-gfm';
22

3-
const prettierConfig = require('../.prettierrc.js');
3+
import type { StorybookConfig } from '@storybook/react-webpack5';
44

5-
module.exports = {
5+
const config: StorybookConfig = {
66
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'],
77

88
typescript: {
@@ -58,3 +58,5 @@ module.exports = {
5858
options: {},
5959
},
6060
};
61+
62+
export default config;

.yarn/install-state.gz

45.2 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"react": "^18.2.0",
8888
"react-app-polyfill": "^3.0.0",
8989
"react-dom": "^18.2.0",
90-
"remark-gfm": "^4.0.0",
90+
"remark-gfm": "^3.0.0",
9191
"rimraf": "^5.0.5",
9292
"rollup": "^2.61.1",
9393
"rollup-plugin-terser": "^7.0.2",

0 commit comments

Comments
 (0)