We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321f418 commit 696773dCopy full SHA for 696773d
packages/mdjs-core/src/mdjsStoryParse.js
@@ -186,6 +186,9 @@ export function mdjsStoryParse({
186
visit(tree, 'code', nodeCodeVisitor);
187
// we can only return/modify the tree but stories should not be part of the tree
188
// so we attach it globally to the file.data
189
+ if (!file.data) {
190
+ file.data = {};
191
+ }
192
file.data.stories = stories;
193
194
return tree;
0 commit comments