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
Copy file name to clipboardExpand all lines: docs/components/MarkdownSample.mdx
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,8 @@
3
3
[View on GitHub](https://github.com/tailwindcss/typography)
4
4
5
5
<pclassName="lead">
6
-
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
7
-
when an unknown printer took a galley of type and scrambled it to make a type
8
-
specimen book.
6
+
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
7
+
printer took a galley of type and scrambled it to make a type specimen book.
9
8
</p>
10
9
11
10
A plugin that provides a `rich-text` class you can use to add sensible typographic defaults to any vanilla HTML you don't control (like HTML rendered from Markdown, or pulled from a CMS).
@@ -26,6 +25,7 @@ It's important to cover all of these use cases for a few reasons:
26
25
27
26
1. We want everything to look good out of the box.
28
27
2. Really just the first reason, that's the whole point of the plugin.
28
+
3. Here's a third pretend reason though because three is a better number of items.
29
29
30
30
Now we're going to try out a header style.
31
31
@@ -47,9 +47,8 @@ It's probably important that images look okay here by default as well:
47
47
alt=""
48
48
/>
49
49
<figcaption>
50
-
Contrary to popular belief, Lorem Ipsum is not simply random text. It has
51
-
roots in a piece of classical Latin literature from 45 BC, making it over
52
-
2000 years old.
50
+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
51
+
classical Latin literature from 45 BC, making it over 2000 years old.
53
52
</figcaption>
54
53
</figure>
55
54
@@ -59,6 +58,34 @@ Now I'm going to show you an example of an unordered list to make sure that look
59
58
- In this example we're keeping the items short.
60
59
- Later, we'll use longer, more complex list items.
61
60
61
+
It's also possible to have an ordered list with _lots_ of items in it. I think more than maybe 25 is probably not worth optimizing for but let's at least try 25 to see how it looks.
62
+
63
+
1. Here's the first item.
64
+
2. Now a second item has appeared.
65
+
3. A third item could also be in this list.
66
+
4. If we added fourth it would go here.
67
+
5. Five is the number of fingers most people have on each hand.
68
+
6. Six.
69
+
7. Seven is a great name for a baby.
70
+
8. Eight is the number of the black ball in pool.
71
+
9. Nine is one of my favorite numbers because I like 3 and 9 has three 3s.
72
+
10. This is the number my daughter normally stops counting at.
73
+
11. Add a seven before this one and you've got a great convenience store.
74
+
12. Monkeys.
75
+
13. Some elevators don't have this number, maybe most even?
76
+
14. Now we are entering the territory where numbers don't have any cool meaning.
77
+
15. Yep still holding true.
78
+
16. You could learn to drive now in many places.
79
+
17. At this point you should be pretty good at driving.
80
+
18. Not old enough to drink but old enough to play bingo.
81
+
19. Now you can booze up baby.
82
+
20. Still not old enough to drink in the US though.
83
+
21. But now you can.
84
+
22. You've probably gotten a DUI at this point.
85
+
23. And now you're in jail.
86
+
24. Still in jail.
87
+
25. Now you could rent a car if you hadn't got a DUI.
0 commit comments