Skip to content

Commit 0b44d8b

Browse files
committed
Add markdown story
1 parent 3bf4ab4 commit 0b44d8b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

stories/Markdown.stories.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Markdown } from "../docs/Markdown";
2+
import { sectionName } from "./sectionName";
3+
import { getStoryFactory } from "./getStory";
4+
5+
const { meta, getStory } = getStoryFactory({
6+
sectionName,
7+
"wrappedComponent": { Markdown }
8+
});
9+
10+
export default meta;
11+
12+
export const Default = getStory({
13+
"children": `
14+
\`\`\`diff
15+
+ A line added
16+
- A line removed
17+
A line that hasn't moved
18+
\`\`\`
19+
`
20+
});

0 commit comments

Comments
 (0)