@readme/markdown 6.62.2 → 6.62.4
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/components/Callout/index.jsx +1 -1
- package/components/Callout/style.scss +56 -27
- package/components/Code/style.scss +72 -81
- package/components/CodeTabs/style.scss +27 -21
- package/components/Embed/style.scss +67 -59
- package/components/GlossaryItem/style.scss +23 -11
- package/components/Heading/style.scss +15 -9
- package/components/Image/index.jsx +3 -3
- package/components/Image/style.scss +62 -64
- package/components/Table/style.scss +23 -17
- package/dist/main.css +16 -9
- package/dist/main.js +646 -688
- package/dist/main.node.js +572 -639
- package/package.json +8 -3
- package/styles/components.scss +9 -10
- package/styles/gfm.scss +100 -97
- package/styles/main.scss +4 -3
- package/components/HTMLBlock/style.scss +0 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "6.62.
|
|
5
|
+
"version": "6.62.4",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "webpack --mode production",
|
|
15
15
|
"heroku-postbuild": "make emojis && webpack --mode production --config ./webpack.dev.js",
|
|
16
|
-
"lint": "
|
|
16
|
+
"lint": "npm run lint:js && npm run lint:css",
|
|
17
|
+
"lint:css": "stylelint '{components,styles}/**/*.{css,scss}'",
|
|
18
|
+
"lint:js": "eslint --ext ts,tsx,js,jsx .",
|
|
17
19
|
"prepare": "husky install",
|
|
18
20
|
"pretest": "npm run lint",
|
|
19
21
|
"prettier": "prettier --list-different --write \"./**/**.{js,jsx}\"",
|
|
@@ -74,7 +76,8 @@
|
|
|
74
76
|
"@commitlint/config-angular": "^17.1.0",
|
|
75
77
|
"@commitlint/config-conventional": "^17.1.0",
|
|
76
78
|
"@hot-loader/react-dom": "^16.14.0",
|
|
77
|
-
"@readme/eslint-config": "^10.
|
|
79
|
+
"@readme/eslint-config": "^10.5.2",
|
|
80
|
+
"@readme/stylelint-config": "^3.1.16",
|
|
78
81
|
"@readme/variable": "^15.1.2",
|
|
79
82
|
"@semantic-release/changelog": "^6.0.1",
|
|
80
83
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -96,6 +99,7 @@
|
|
|
96
99
|
"jest-puppeteer": "^6.1.1",
|
|
97
100
|
"mini-css-extract-plugin": "^2.6.1",
|
|
98
101
|
"node-sass": "^7.0.3",
|
|
102
|
+
"postcss": "^8.4.23",
|
|
99
103
|
"prettier": "^2.7.1",
|
|
100
104
|
"puppeteer": "^19.0.0",
|
|
101
105
|
"react": "^16.14.0",
|
|
@@ -105,6 +109,7 @@
|
|
|
105
109
|
"sass-loader": "^13.1.0",
|
|
106
110
|
"semantic-release": "^19.0.5",
|
|
107
111
|
"string.prototype.trimend": "^1.0.5",
|
|
112
|
+
"stylelint": "^14.16.1",
|
|
108
113
|
"terser-webpack-plugin": "^5.3.6",
|
|
109
114
|
"webpack": "^5.74.0",
|
|
110
115
|
"webpack-cli": "^4.10.0",
|
package/styles/components.scss
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
@import '../components/Image/style
|
|
2
|
-
@import '../components/Table/style
|
|
3
|
-
@import '../components/TableOfContents/style
|
|
4
|
-
@import '../components/Code/style
|
|
5
|
-
@import '../components/CodeTabs/style
|
|
6
|
-
@import '../components/Callout/style
|
|
7
|
-
@import '../components/Heading/style
|
|
8
|
-
@import '../components/
|
|
9
|
-
@import '../components/
|
|
10
|
-
@import '../components/GlossaryItem/style.scss';
|
|
1
|
+
@import '../components/Image/style';
|
|
2
|
+
@import '../components/Table/style';
|
|
3
|
+
@import '../components/TableOfContents/style';
|
|
4
|
+
@import '../components/Code/style';
|
|
5
|
+
@import '../components/CodeTabs/style';
|
|
6
|
+
@import '../components/Callout/style';
|
|
7
|
+
@import '../components/Heading/style';
|
|
8
|
+
@import '../components/Embed/style';
|
|
9
|
+
@import '../components/GlossaryItem/style';
|
package/styles/gfm.scss
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
2
|
+
/* stylelint-disable no-descending-specificity */
|
|
3
|
+
/* stylelint-disable declaration-block-no-duplicate-properties */
|
|
4
|
+
/* stylelint-disable custom-property-pattern */
|
|
5
|
+
/* stylelint-disable scss/selector-no-redundant-nesting-selector */
|
|
1
6
|
@mixin gfm {
|
|
2
|
-
@include
|
|
3
|
-
@include
|
|
7
|
+
@include markdown-defaults;
|
|
8
|
+
@include markdown-overrides;
|
|
4
9
|
}
|
|
5
10
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@include _clearfix();
|
|
16
|
-
}
|
|
11
|
+
@mixin markdown-defaults {
|
|
12
|
+
@include clearfix;
|
|
13
|
+
|
|
14
|
+
color: var(--markdown-text);
|
|
15
|
+
font-family: var(--markdown-font);
|
|
16
|
+
line-height: var(--markdown-line-height);
|
|
17
|
+
position: relative;
|
|
18
|
+
text-size-adjust: 100%;
|
|
19
|
+
word-wrap: break-word;
|
|
17
20
|
|
|
18
21
|
ul {
|
|
19
22
|
list-style: initial;
|
|
@@ -23,11 +26,11 @@
|
|
|
23
26
|
float: left;
|
|
24
27
|
line-height: 1;
|
|
25
28
|
margin-left: -20px;
|
|
26
|
-
padding-right: 4px
|
|
29
|
+
padding-right: 4px;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
.anchor:focus {
|
|
30
|
-
outline: 0
|
|
33
|
+
outline: 0;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
h1:hover .anchor,
|
|
@@ -36,19 +39,19 @@
|
|
|
36
39
|
h4:hover .anchor,
|
|
37
40
|
h5:hover .anchor,
|
|
38
41
|
h6:hover .anchor {
|
|
39
|
-
text-decoration: none
|
|
42
|
+
text-decoration: none;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
details {
|
|
43
|
-
display: block
|
|
46
|
+
display: block;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
summary {
|
|
47
|
-
display: list-item
|
|
50
|
+
display: list-item;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
a {
|
|
51
|
-
transition: .15s ease;
|
|
54
|
+
transition: 0.15s ease;
|
|
52
55
|
|
|
53
56
|
&:hover {
|
|
54
57
|
text-decoration: underline;
|
|
@@ -57,68 +60,66 @@
|
|
|
57
60
|
|
|
58
61
|
a:active,
|
|
59
62
|
a:hover {
|
|
60
|
-
outline-width: 0
|
|
63
|
+
outline-width: 0;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
a:not([href]) {
|
|
64
67
|
color: inherit;
|
|
65
|
-
text-decoration: none
|
|
68
|
+
text-decoration: none;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
strong {
|
|
69
72
|
font-weight: inherit;
|
|
70
|
-
font-weight: bolder
|
|
73
|
+
font-weight: bolder;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
h1 {
|
|
74
77
|
font-size: 2em;
|
|
75
|
-
margin: .67em 0
|
|
78
|
+
margin: 0.67em 0;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
hr {
|
|
79
|
-
|
|
82
|
+
@include clearfix;
|
|
80
83
|
|
|
84
|
+
background: transparent;
|
|
85
|
+
border-bottom: 1px solid var(--markdown-edge, #dfe2e5);
|
|
86
|
+
border-width: 0 0 1px;
|
|
87
|
+
box-sizing: content-box;
|
|
81
88
|
height: 0;
|
|
82
|
-
overflow: hidden;
|
|
83
89
|
margin: 15px 0;
|
|
84
|
-
|
|
85
|
-
border-width: 0 0 1px;
|
|
86
|
-
border-bottom: 1px solid var(--markdown-edge, #dfe2e5);
|
|
87
|
-
background: transparent;
|
|
88
|
-
|
|
89
|
-
@include _clearfix();
|
|
90
|
+
overflow: hidden;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
input {
|
|
93
94
|
font: inherit;
|
|
94
|
-
margin: 0
|
|
95
|
+
margin: 0;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
input {
|
|
98
|
-
overflow: visible
|
|
99
|
+
overflow: visible;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
[type=checkbox] {
|
|
102
|
+
[type='checkbox'] {
|
|
102
103
|
box-sizing: border-box;
|
|
103
|
-
padding: 0
|
|
104
|
+
padding: 0;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
* {
|
|
107
|
-
box-sizing: border-box
|
|
108
|
+
box-sizing: border-box;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
input {
|
|
111
112
|
font-family: inherit;
|
|
112
113
|
font-size: inherit;
|
|
113
|
-
line-height: inherit
|
|
114
|
+
line-height: inherit;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
strong {
|
|
117
|
-
font-weight: 600
|
|
118
|
+
font-weight: 600;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
details summary {
|
|
121
|
-
cursor: pointer
|
|
122
|
+
cursor: pointer;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
h1,
|
|
@@ -127,20 +128,20 @@
|
|
|
127
128
|
h4,
|
|
128
129
|
h5,
|
|
129
130
|
h6 {
|
|
130
|
-
line-height: 1.25;
|
|
131
131
|
color: var(--markdown-title);
|
|
132
132
|
font-family: var(--markdown-title-font);
|
|
133
133
|
font-size: var(--markdown-title-size);
|
|
134
134
|
font-weight: var(--markdown-title-weight, 600);
|
|
135
|
-
|
|
135
|
+
line-height: 1.25;
|
|
136
136
|
margin-bottom: var(--markdown-title-marginBottom, 1rem);
|
|
137
|
+
margin-top: var(--markdown-title-marginTop, 1em);
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
h1 {
|
|
140
141
|
font-size: 1.75em;
|
|
141
142
|
font-size: var(--markdown-title-size, 1.75em);
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
+
|
|
144
145
|
h2 {
|
|
145
146
|
font-size: 1.5em;
|
|
146
147
|
font-size: var(--markdown-title-size, 1.5em);
|
|
@@ -179,62 +180,62 @@
|
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
h5 {
|
|
182
|
-
font-size: .875em;
|
|
183
|
-
font-size: var(--markdown-title-size, .875em);
|
|
183
|
+
font-size: 0.875em;
|
|
184
|
+
font-size: var(--markdown-title-size, 0.875em);
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
h6 {
|
|
187
|
-
font-size: .85em;
|
|
188
|
-
font-size: var(--markdown-title-size, .85em);
|
|
189
188
|
color: var(--markdown-title, #6a737d);
|
|
189
|
+
font-size: 0.85em;
|
|
190
|
+
font-size: var(--markdown-title-size, 0.85em);
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
p,
|
|
193
194
|
.p {
|
|
194
195
|
margin-bottom: 10px;
|
|
195
|
-
margin-top: 0
|
|
196
|
+
margin-top: 0;
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
blockquote {
|
|
199
|
-
margin: 0
|
|
200
|
+
margin: 0;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
ol,
|
|
203
204
|
ul {
|
|
204
205
|
margin-bottom: 0;
|
|
205
206
|
margin-top: 0;
|
|
206
|
-
padding-left: 0
|
|
207
|
+
padding-left: 0;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
ol ol,
|
|
210
211
|
ul ol {
|
|
211
|
-
list-style-type: lower-roman
|
|
212
|
+
list-style-type: lower-roman;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
ol ol ol,
|
|
215
216
|
ol ul ol,
|
|
216
217
|
ul ol ol,
|
|
217
218
|
ul ul ol {
|
|
218
|
-
list-style-type: lower-alpha
|
|
219
|
+
list-style-type: lower-alpha;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
dd {
|
|
222
|
-
margin-left: 0
|
|
223
|
+
margin-left: 0;
|
|
223
224
|
}
|
|
224
225
|
|
|
225
226
|
input::-webkit-inner-spin-button,
|
|
226
227
|
input::-webkit-outer-spin-button {
|
|
227
|
-
-webkit-appearance: none;
|
|
228
228
|
appearance: none;
|
|
229
|
-
|
|
229
|
+
appearance: none;
|
|
230
|
+
margin: 0;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
|
|
233
|
-
margin-top: 0 !important
|
|
233
|
+
& > :first-child {
|
|
234
|
+
margin-top: 0 !important;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
|
|
237
|
-
margin-bottom: 0 !important
|
|
237
|
+
& > :last-child {
|
|
238
|
+
margin-bottom: 0 !important;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
blockquote,
|
|
@@ -244,28 +245,28 @@
|
|
|
244
245
|
pre,
|
|
245
246
|
table,
|
|
246
247
|
ul {
|
|
247
|
-
margin-top: 0;
|
|
248
248
|
margin-bottom: 15px;
|
|
249
|
+
margin-top: 0;
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
blockquote {
|
|
252
|
-
|
|
253
|
-
border-left: .25em solid #dfe2e5;
|
|
253
|
+
border-left: 0.25em solid #dfe2e5;
|
|
254
254
|
color: #6a737d;
|
|
255
|
-
|
|
255
|
+
display: block;
|
|
256
|
+
padding: 0 1em;
|
|
256
257
|
}
|
|
257
258
|
|
|
258
|
-
blockquote
|
|
259
|
-
margin-top: 0
|
|
259
|
+
blockquote > :first-child {
|
|
260
|
+
margin-top: 0;
|
|
260
261
|
}
|
|
261
262
|
|
|
262
|
-
blockquote
|
|
263
|
-
margin-bottom: 0
|
|
263
|
+
blockquote > :last-child {
|
|
264
|
+
margin-bottom: 0;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
ol,
|
|
267
268
|
ul {
|
|
268
|
-
padding-left: 2em
|
|
269
|
+
padding-left: 2em;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
ol ol,
|
|
@@ -273,23 +274,23 @@
|
|
|
273
274
|
ul ol,
|
|
274
275
|
ul ul {
|
|
275
276
|
margin-bottom: 0;
|
|
276
|
-
margin-top: 0
|
|
277
|
+
margin-top: 0;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
li {
|
|
280
|
-
word-wrap: break-all
|
|
281
|
+
word-wrap: break-all;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
|
-
li>p {
|
|
284
|
-
margin-top: 1em
|
|
284
|
+
li > p {
|
|
285
|
+
margin-top: 1em;
|
|
285
286
|
}
|
|
286
287
|
|
|
287
|
-
li+li {
|
|
288
|
-
margin-top: .25em
|
|
288
|
+
li + li {
|
|
289
|
+
margin-top: 0.25em;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
292
|
dl {
|
|
292
|
-
padding: 0
|
|
293
|
+
padding: 0;
|
|
293
294
|
}
|
|
294
295
|
|
|
295
296
|
dl dt {
|
|
@@ -297,31 +298,31 @@
|
|
|
297
298
|
font-style: italic;
|
|
298
299
|
font-weight: 600;
|
|
299
300
|
margin-top: 1em;
|
|
300
|
-
padding: 0
|
|
301
|
+
padding: 0;
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
dl dd {
|
|
304
305
|
margin-bottom: 1em;
|
|
305
|
-
padding: 0 1em
|
|
306
|
+
padding: 0 1em;
|
|
306
307
|
}
|
|
307
308
|
|
|
308
|
-
:checked
|
|
309
|
+
:checked + .radio-label {
|
|
309
310
|
border-color: var(--project-color-primary);
|
|
310
311
|
position: relative;
|
|
311
|
-
z-index: 1
|
|
312
|
+
z-index: 1;
|
|
312
313
|
}
|
|
313
314
|
|
|
314
315
|
.task-list-item {
|
|
315
|
-
list-style-type: none
|
|
316
|
+
list-style-type: none;
|
|
316
317
|
}
|
|
317
318
|
|
|
318
|
-
.task-list-item
|
|
319
|
-
margin-top: 3px
|
|
319
|
+
.task-list-item + .task-list-item {
|
|
320
|
+
margin-top: 3px;
|
|
320
321
|
}
|
|
321
322
|
|
|
322
323
|
.task-list-item input {
|
|
323
|
-
margin: 0 .2em .25em -1.6em;
|
|
324
|
-
vertical-align: middle
|
|
324
|
+
margin: 0 0.2em 0.25em -1.6em;
|
|
325
|
+
vertical-align: middle;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
p.blank-line {
|
|
@@ -329,38 +330,40 @@
|
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
|
|
332
|
-
@mixin
|
|
333
|
+
@mixin markdown-overrides {
|
|
333
334
|
h5,
|
|
334
335
|
h6 {
|
|
335
|
-
font-size: .9em;
|
|
336
|
+
font-size: 0.9em;
|
|
336
337
|
}
|
|
337
338
|
|
|
338
|
-
|
|
339
339
|
blockquote h1:last-child,
|
|
340
340
|
blockquote h2:last-child {
|
|
341
341
|
border-bottom: 0;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
>* {
|
|
346
|
-
margin-top: 15px;
|
|
344
|
+
> * {
|
|
347
345
|
margin-bottom: 15px !important;
|
|
346
|
+
margin-top: 15px;
|
|
348
347
|
}
|
|
349
348
|
|
|
350
|
-
|
|
351
349
|
.task-list-item input {
|
|
352
|
-
margin: 0 .5em .25em -1.25em;
|
|
350
|
+
margin: 0 0.5em 0.25em -1.25em;
|
|
353
351
|
}
|
|
354
352
|
|
|
355
|
-
a[href],
|
|
356
|
-
|
|
353
|
+
a[href],
|
|
354
|
+
a:not([href='']) {
|
|
355
|
+
text-decoration: underline;
|
|
357
356
|
}
|
|
358
357
|
}
|
|
359
358
|
|
|
360
|
-
@mixin
|
|
361
|
-
|
|
362
|
-
|
|
359
|
+
@mixin clearfix() {
|
|
360
|
+
&::before,
|
|
361
|
+
&::after {
|
|
362
|
+
content: '';
|
|
363
363
|
display: table;
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
|
|
366
|
+
&::after {
|
|
367
|
+
clear: both;
|
|
368
|
+
}
|
|
366
369
|
}
|
package/styles/main.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import './gfm
|
|
2
|
-
@import './components
|
|
1
|
+
@import './gfm';
|
|
2
|
+
@import './components';
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
5
|
// --markdown-radius: 3px;
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
.field-description,
|
|
16
16
|
.markdown-body {
|
|
17
17
|
@include gfm;
|
|
18
|
+
|
|
18
19
|
font-size: var(--markdown-font-size, 14px);
|
|
19
|
-
}
|
|
20
|
+
}
|