@codearcade/mdx 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +181 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +49504 -36
- package/dist/index.js.map +3 -3
- package/package.json +2 -4
package/dist/index.css
CHANGED
|
@@ -1 +1,181 @@
|
|
|
1
|
-
|
|
1
|
+
/* src/components/markdown.module.css */
|
|
2
|
+
.markdownBody_A8U9fw {
|
|
3
|
+
border-radius: .5rem;
|
|
4
|
+
max-width: 850px;
|
|
5
|
+
padding: 1.5rem;
|
|
6
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Helvetica, Arial, sans-serif;
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
line-height: 1.75;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.markdownBody_A8U9fw h1 {
|
|
12
|
+
font-size: 1.875rem;
|
|
13
|
+
line-height: 2.25rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.markdownBody_A8U9fw h2 {
|
|
17
|
+
font-size: 1.5rem;
|
|
18
|
+
line-height: 2rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.markdownBody_A8U9fw h3 {
|
|
22
|
+
font-size: 1.25rem;
|
|
23
|
+
line-height: 1.75rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.markdownBody_A8U9fw h1, .markdownBody_A8U9fw h2, .markdownBody_A8U9fw h3 {
|
|
27
|
+
margin-bottom: 1rem;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.markdownBody_A8U9fw p {
|
|
32
|
+
margin-bottom: 1rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.markdownBody_A8U9fw a {
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.markdownBody_A8U9fw a:hover {
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.markdownBody_A8U9fw ul, .markdownBody_A8U9fw ol {
|
|
44
|
+
margin-bottom: 1rem;
|
|
45
|
+
padding-left: 1.5rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.markdownBody_A8U9fw ul {
|
|
49
|
+
list-style-type: disc;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.markdownBody_A8U9fw ol {
|
|
53
|
+
list-style-type: decimal;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.markdownBody_A8U9fw li {
|
|
57
|
+
margin-bottom: .5rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.markdownBody_A8U9fw code, .markdownBody_A8U9fw pre {
|
|
61
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.markdownBody_A8U9fw code {
|
|
65
|
+
border-radius: .25rem;
|
|
66
|
+
padding: .25rem;
|
|
67
|
+
font-size: .875rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.markdownBody_A8U9fw pre {
|
|
71
|
+
overflow-x: auto;
|
|
72
|
+
border-radius: .5rem;
|
|
73
|
+
margin-bottom: 1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.markdownBody_A8U9fw blockquote {
|
|
77
|
+
border-left: 4px solid;
|
|
78
|
+
margin-bottom: 1rem;
|
|
79
|
+
margin-left: 0;
|
|
80
|
+
padding-left: 1rem;
|
|
81
|
+
font-style: italic;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.markdownBody_A8U9fw strong {
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.markdownBody_A8U9fw em {
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.markdownBody_A8U9fw del {
|
|
93
|
+
text-decoration: line-through;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.markdownBody_A8U9fw hr {
|
|
97
|
+
border: none;
|
|
98
|
+
border-top: 2px solid;
|
|
99
|
+
margin: 1.5rem 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.markdownBody_A8U9fw table {
|
|
103
|
+
border-collapse: collapse;
|
|
104
|
+
overflow-x: auto;
|
|
105
|
+
width: 100%;
|
|
106
|
+
margin-bottom: 1rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.markdownBody_A8U9fw th, .markdownBody_A8U9fw td {
|
|
110
|
+
text-align: left;
|
|
111
|
+
border: 1px solid;
|
|
112
|
+
padding: .5rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.markdownBody_A8U9fw th {
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.markdownBody_A8U9fw tr:nth-child(2n) {
|
|
120
|
+
background: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.markdownBody_A8U9fw > * + * {
|
|
124
|
+
margin-top: 1rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.markdownBody_A8U9fw h1, .markdownBody_A8U9fw h2, .markdownBody_A8U9fw h3 {
|
|
128
|
+
margin-top: 2rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.markdownBody_A8U9fw h1:first-child, .markdownBody_A8U9fw h2:first-child, .markdownBody_A8U9fw h3:first-child {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.markdownBody_A8U9fw li > ul, .markdownBody_A8U9fw li > ol {
|
|
136
|
+
margin-top: .5rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.markdownBody_A8U9fw img {
|
|
140
|
+
display: block;
|
|
141
|
+
max-width: 100%;
|
|
142
|
+
height: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.markdownBody_A8U9fw pre {
|
|
146
|
+
margin-top: 1.25rem;
|
|
147
|
+
margin-bottom: 1.25rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.markdownAction_A8U9fw {
|
|
151
|
+
position: absolute;
|
|
152
|
+
display: flex;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
opacity: .75;
|
|
155
|
+
color: var(--color-foreground, #171717);
|
|
156
|
+
background-color: #e5e7eb;
|
|
157
|
+
border: none;
|
|
158
|
+
border-radius: .5rem;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: .25rem;
|
|
161
|
+
padding: .25rem .5rem;
|
|
162
|
+
transition: opacity .15s ease-in-out;
|
|
163
|
+
font-size: .875rem;
|
|
164
|
+
top: .5rem;
|
|
165
|
+
right: .5rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.markdownAction_A8U9fw:hover {
|
|
169
|
+
opacity: 1;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.markdownAction_A8U9fw svg {
|
|
173
|
+
flex: none;
|
|
174
|
+
width: .85rem;
|
|
175
|
+
height: .85rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.dark_A8U9fw .markdownAction_A8U9fw {
|
|
179
|
+
color: var(--color-foreground, #fff);
|
|
180
|
+
background-color: #3f3f46;
|
|
181
|
+
}
|
package/dist/index.d.ts
CHANGED