@storybook/addon-mdx-gfm 8.3.0-alpha.5 → 8.3.0-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +19 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
import ESM_COMPAT_Module from 'node:module';
|
2
|
+
import { fileURLToPath } from 'node:url';
|
3
|
+
import { dirname } from 'node:path';
|
4
|
+
import { deprecate } from 'storybook/internal/node-logger';
|
5
|
+
import remarkGfm from 'remark-gfm';
|
6
|
+
import { dedent } from 'ts-dedent';
|
7
|
+
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
9
|
+
dirname(__filename);
|
10
|
+
ESM_COMPAT_Module.createRequire(import.meta.url);
|
11
|
+
var mdxLoaderOptions=async config=>(config.mdxCompileOptions.remarkPlugins=config.mdxCompileOptions.remarkPlugins||[],config.mdxCompileOptions.remarkPlugins.push(remarkGfm),config);deprecate(dedent`
|
12
|
+
The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Storybook 8.0; and will likely be removed in a future version.
|
13
|
+
It's recommended you read this document:
|
14
|
+
https://storybook.js.org/docs/writing-docs/mdx#markdown-tables-arent-rendering-correctly
|
15
|
+
|
16
|
+
Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
|
17
|
+
`);
|
18
|
+
|
19
|
+
export { mdxLoaderOptions };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/addon-mdx-gfm",
|
3
|
-
"version": "8.3.0-alpha.
|
3
|
+
"version": "8.3.0-alpha.7",
|
4
4
|
"description": "GitHub Flavored Markdown in Storybook",
|
5
5
|
"keywords": [
|
6
6
|
"addon",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"typescript": "^5.3.2"
|
52
52
|
},
|
53
53
|
"peerDependencies": {
|
54
|
-
"storybook": "^8.3.0-alpha.
|
54
|
+
"storybook": "^8.3.0-alpha.7"
|
55
55
|
},
|
56
56
|
"publishConfig": {
|
57
57
|
"access": "public"
|