-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMarkdown.stories.tsx
More file actions
69 lines (53 loc) · 1.28 KB
/
Markdown.stories.tsx
File metadata and controls
69 lines (53 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import React from "react";
import { Meta, StoryFn } from "@storybook/react";
import { Markdown } from "./../../../index";
export default {
title: "Cmem/Markdown",
component: Markdown,
argTypes: {},
} as Meta<typeof Markdown>;
const Template: StoryFn<typeof Markdown> = (args) => <Markdown {...args} />;
export const Default = Template.bind({});
Default.args = {
children: `
# This is a headline level 1
This is a paragraph.
* this is a unordered list
* with sub items
* with sub items
* another level
* another level
* sub item
* other list item
* a last one
1. ordered list
1. ordered sub items
2. second line
2. second item
* unordered sub items
* another line
3. third item
This is a paragraph with a [text link](http://example.com/), some \`inline code\`, and a footnote reference [^1].
## Headline level 2
### Headline level 3
#### Headline level 4
##### Headline level 5
###### Headline level 6
This is a code block.
\`\`\`
another code block
{{templateVar}}
\`\`\`
\`\`\`json
{
"json": "varname"
}
\`\`\`
> This is a block quote.
>
> With 2 paragraphs.
> And some code like \`{{showThisNotItsValue}}\`
A line with some <strong>HTML code</strong> inside.
[^1]: This is the text related to the the footnote referrer.
`,
};