You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LG-5570] feat(lg-markdown): expand markdown support and improve styling system (#3158)
* chore(lg-markdown): add palette dep
* test(lg-markdown): update MARKDOWN_TEXT for stories
* test(message): update MARKDOWN_TEXT for story
* feat(lg-markdown): enhance styling system and component mappings
* fix(message): long link formatting
* chore: changesets
* chore(lg-markdown): add comments about h5 and h6
* fix(lg-markdown): layout and spacing
Copy file name to clipboardExpand all lines: chat/lg-markdown/src/LGMarkdown.stories.tsx
+34-5Lines changed: 34 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,21 @@ import { StoryFn } from '@storybook/react';
4
4
5
5
import{LGMarkdown}from'.';
6
6
7
-
constStoryMarkdown=`
7
+
constMARKDOWN_TEXT=`
8
8
# Heading 1
9
9
10
10
## Heading 2
11
11
12
12
### Heading 3
13
13
14
+
#### Heading 4
15
+
16
+
##### Heading 5 (not supported)
17
+
18
+
###### Heading 6 (not supported)
19
+
20
+
---
21
+
14
22
This is a paragraph.
15
23
16
24
Each paragraph can span multiple lines. And have multiple sentences!
@@ -19,6 +27,10 @@ A paragraph can also contain formatted text, like *italics* or **bold** words.
19
27
20
28
You can link to a URL using markdown link notation, e.g. [LeafyGreen UI](mongodb.design)
21
29
30
+
Long links will wrap to the next line: [https://mongodb.github.io/leafygreen-ui/?path=/docs/overview-introduction--docs](https://mongodb.github.io/leafygreen-ui/?path=/docs/overview-introduction--docs)
31
+
32
+
---
33
+
22
34
If you want to talk about code in a paragraph, you can use \`inline code\`. Wow!
Copy file name to clipboardExpand all lines: chat/message/src/Message.stories.tsx
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,14 @@ const MARKDOWN_TEXT = `
19
19
20
20
### Heading 3
21
21
22
+
#### Heading 4
23
+
24
+
##### Heading 5 (not supported)
25
+
26
+
###### Heading 6 (not supported)
27
+
28
+
---
29
+
22
30
This is a paragraph.
23
31
24
32
Each paragraph can span multiple lines. And have multiple sentences!
@@ -27,6 +35,10 @@ A paragraph can also contain formatted text, like *italics* or **bold** words.
27
35
28
36
You can link to a URL using markdown link notation, e.g. [LeafyGreen UI](mongodb.design)
29
37
38
+
Long links will wrap to the next line: [https://mongodb.github.io/leafygreen-ui/?path=/docs/overview-introduction--docs](https://mongodb.github.io/leafygreen-ui/?path=/docs/overview-introduction--docs)
39
+
40
+
---
41
+
30
42
If you want to talk about code in a paragraph, you can use \`inline code\`. Wow!
0 commit comments