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
+21-18
Original file line number
Diff line number
Diff line change
@@ -85,9 +85,7 @@ module.exports = {
85
85
extend: {},
86
86
},
87
87
variants: {},
88
-
plugins: [
89
-
require('../src/index.js'),
90
-
],
88
+
plugins: [require('../src/index.js')],
91
89
}
92
90
```
93
91
@@ -98,37 +96,42 @@ Hopefully that looks good enough to you.
98
96
Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it I have to carry the burden of at least making it work.
99
97
100
98
1.**Nested lists are rarely a good idea.**
101
-
+ You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
102
-
+ Nested navigation in UIs is a bad idea too, keep things as flat as possible.
103
-
+ Nesting tons of folders in your source code is also not helpful.
99
+
- You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
100
+
- Nested navigation in UIs is a bad idea too, keep things as flat as possible.
101
+
- Nesting tons of folders in your source code is also not helpful.
104
102
2.**Since we need to have more items, here's another one.**
105
-
+ I'm not sure if I'll bother styling more than two levels deep.
106
-
+ Two is already too much, three is guaranteed to be a bad idea.
107
-
+ If you nest four levels deep you belong in prison.
103
+
- I'm not sure if I'll bother styling more than two levels deep.
104
+
- Two is already too much, three is guaranteed to be a bad idea.
105
+
- If you nest four levels deep you belong in prison.
108
106
3.**Two items isn't really a list, three is good though.**
109
-
+ Again please don't nest lists if you want people to actually read your content.
110
-
+ Nobody wants to look at this.
111
-
+ I'm upset that I even have to bother styling this.
107
+
- Again please don't nest lists if you want people to actually read your content.
108
+
- Nobody wants to look at this.
109
+
- I'm upset that I even have to bother styling this.
112
110
113
111
The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
114
112
115
113
-**For example, here's another nested list.**
116
114
117
115
But this time with a second paragraph.
118
-
- These list items won't have `<p>` tags
119
-
- Because they are only one line each
116
+
117
+
- These list items won't have `<p>` tags
118
+
- Because they are only one line each
119
+
120
120
-**But in this second top-level list item, they will.**
121
121
122
122
This is especially annoying because of the spacing on this paragraph.
123
-
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
124
123
125
-
This is the second line I'm talking about by the way.
126
-
- Finally here's another list item so it's more like a list.
124
+
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
125
+
126
+
This is the second line I'm talking about by the way.
127
+
128
+
- Finally here's another list item so it's more like a list.
129
+
127
130
- A closing list item, but with no nested list, because why not?
128
131
129
132
And finally a sentence to close off this section.
130
133
131
-
## There are other elements we need to style
134
+
## There are other `elements` we need to style
132
135
133
136
I almost forgot to style links, like [this link to the Tailwind CSS website](https://tailwindcss.com). How should those look by default, blue I guess? I dunno.
0 commit comments