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
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
[View on GitHub](https://github.com/tailwindcss/typography)
4
4
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.
9
+
</p>
10
+
5
11
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).
6
12
7
13
```html
@@ -12,6 +18,8 @@ A plugin that provides a `rich-text` class you can use to add sensible typograph
12
18
13
19
What follows is just a big block of example content designed to dogfood the plugin.
14
20
21
+
---
22
+
15
23
It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
16
24
17
25
It's important to cover all of these use cases for a few reasons:
@@ -21,7 +29,9 @@ It's important to cover all of these use cases for a few reasons:
21
29
22
30
Now we're going to try out a header style.
23
31
24
-
## Typography should be easy
32
+
---
33
+
34
+
## Lorem Ipsum is simply dummy text of the printing and typesetting industry.
25
35
26
36
So that's a header for you — with any luck by the time I'm done writing this plugin that will look pretty reasonable.
27
37
@@ -31,7 +41,17 @@ Something a wise person once told me about typography is:
31
41
32
42
It's probably important that images look okay here by default as well:
33
43
34
-

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.
53
+
</figcaption>
54
+
</figure>
35
55
36
56
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
37
57
@@ -47,7 +67,7 @@ And that's the end of this section.
47
67
48
68
Sometimes you have headings directly underneath each other. In those cases you have to be careful not to use too much margin, because typically the space you need between a heading and a paragraph is more than you want between two headings.
49
69
50
-
### When a heading comes after a paragraph...
70
+
### Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
51
71
52
72
When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
0 commit comments