Skip to content

Commit bb1725f

Browse files
committed
Update example document
1 parent e02f8f5 commit bb1725f

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

docs/components/MarkdownSample.mdx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
[View on GitHub](https://github.com/tailwindcss/typography)
44

5+
<p className="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+
511
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).
612

713
```html
@@ -12,6 +18,8 @@ A plugin that provides a `rich-text` class you can use to add sensible typograph
1218

1319
What follows is just a big block of example content designed to dogfood the plugin.
1420

21+
---
22+
1523
It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
1624

1725
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:
2129

2230
Now we're going to try out a header style.
2331

24-
## Typography should be easy
32+
---
33+
34+
## Lorem Ipsum is simply dummy text of the printing and typesetting industry.
2535

2636
So that's a header for you — with any luck by the time I'm done writing this plugin that will look pretty reasonable.
2737

@@ -31,7 +41,17 @@ Something a wise person once told me about typography is:
3141
3242
It's probably important that images look okay here by default as well:
3343

34-
![Someone paying for something at a check out counter](https://images.unsplash.com/photo-1556740758-90de374c12ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80)
44+
<figure>
45+
<img
46+
src="https://images.unsplash.com/photo-1556740758-90de374c12ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80"
47+
alt=""
48+
/>
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.
53+
</figcaption>
54+
</figure>
3555

3656
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
3757

@@ -47,7 +67,7 @@ And that's the end of this section.
4767

4868
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.
4969

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.
5171

5272
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.
5373

0 commit comments

Comments
 (0)