markdown-to-html-cli 3.2.13 → 3.3.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/README.md +1 -0
- package/lib/create.js +5 -3
- package/lib/create.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/nodes/dark-mode.js +1 -1
- package/lib/nodes/dark-mode.js.map +1 -1
- package/lib/nodes/github-corners.js +36 -33
- package/lib/nodes/github-corners.js.map +1 -1
- package/lib/nodes/markdown-style.d.ts +1 -1
- package/lib/nodes/markdown-style.js +8 -946
- package/lib/nodes/markdown-style.js.map +1 -1
- package/package.json +3 -4
- package/src/cli.ts +5 -0
- package/src/create.ts +103 -0
- package/src/index.ts +117 -0
- package/src/nodes/copy.ts +148 -0
- package/src/nodes/dark-mode.ts +31 -0
- package/{github-fork-ribbon.css → src/nodes/github-corners-fork.ts} +38 -1
- package/src/nodes/github-corners.ts +116 -0
- package/src/nodes/markdown-style.ts +109 -0
- package/src/nodes/octiconLink.ts +12 -0
- package/src/utils.ts +50 -0
- package/github.css +0 -32
|
@@ -6,950 +6,8 @@ const scriptString = `
|
|
|
6
6
|
const __TEMPLATE__ = document.createElement('template');
|
|
7
7
|
__TEMPLATE__.innerHTML = \`
|
|
8
8
|
<style>
|
|
9
|
-
:host [data-color-mode*='light'] {
|
|
10
|
-
|
|
11
|
-
--color-prettylights-syntax-constant: #0550ae;
|
|
12
|
-
--color-prettylights-syntax-entity: #8250df;
|
|
13
|
-
--color-prettylights-syntax-storage-modifier-import: #24292f;
|
|
14
|
-
--color-prettylights-syntax-entity-tag: #116329;
|
|
15
|
-
--color-prettylights-syntax-keyword: #cf222e;
|
|
16
|
-
--color-prettylights-syntax-string: #0a3069;
|
|
17
|
-
--color-prettylights-syntax-variable: #953800;
|
|
18
|
-
--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
|
|
19
|
-
--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
|
|
20
|
-
--color-prettylights-syntax-invalid-illegal-bg: #82071e;
|
|
21
|
-
--color-prettylights-syntax-carriage-return-text: #f6f8fa;
|
|
22
|
-
--color-prettylights-syntax-carriage-return-bg: #cf222e;
|
|
23
|
-
--color-prettylights-syntax-string-regexp: #116329;
|
|
24
|
-
--color-prettylights-syntax-markup-list: #3b2300;
|
|
25
|
-
--color-prettylights-syntax-markup-heading: #0550ae;
|
|
26
|
-
--color-prettylights-syntax-markup-italic: #24292f;
|
|
27
|
-
--color-prettylights-syntax-markup-bold: #24292f;
|
|
28
|
-
--color-prettylights-syntax-markup-deleted-text: #82071e;
|
|
29
|
-
--color-prettylights-syntax-markup-deleted-bg: #FFEBE9;
|
|
30
|
-
--color-prettylights-syntax-markup-inserted-text: #116329;
|
|
31
|
-
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
|
|
32
|
-
--color-prettylights-syntax-markup-changed-text: #953800;
|
|
33
|
-
--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
|
|
34
|
-
--color-prettylights-syntax-markup-ignored-text: #eaeef2;
|
|
35
|
-
--color-prettylights-syntax-markup-ignored-bg: #0550ae;
|
|
36
|
-
--color-prettylights-syntax-meta-diff-range: #8250df;
|
|
37
|
-
--color-prettylights-syntax-brackethighlighter-angle: #57606a;
|
|
38
|
-
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
|
|
39
|
-
--color-prettylights-syntax-constant-other-reference-link: #0a3069;
|
|
40
|
-
--color-fg-default: #24292f;
|
|
41
|
-
--color-fg-muted: #57606a;
|
|
42
|
-
--color-fg-subtle: #6e7781;
|
|
43
|
-
--color-canvas-default: #ffffff;
|
|
44
|
-
--color-canvas-subtle: #f6f8fa;
|
|
45
|
-
--color-border-default: #d0d7de;
|
|
46
|
-
--color-border-muted: hsla(210,18%,87%,1);
|
|
47
|
-
--color-neutral-muted: rgba(175,184,193,0.2);
|
|
48
|
-
--color-accent-fg: #0969da;
|
|
49
|
-
--color-accent-emphasis: #0969da;
|
|
50
|
-
--color-attention-subtle: #fff8c5;
|
|
51
|
-
--color-danger-fg: #cf222e;
|
|
52
|
-
}
|
|
53
|
-
:host [data-color-mode*='dark'] {
|
|
54
|
-
--color-prettylights-syntax-comment: #8b949e;
|
|
55
|
-
--color-prettylights-syntax-constant: #79c0ff;
|
|
56
|
-
--color-prettylights-syntax-entity: #d2a8ff;
|
|
57
|
-
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
|
|
58
|
-
--color-prettylights-syntax-entity-tag: #7ee787;
|
|
59
|
-
--color-prettylights-syntax-keyword: #ff7b72;
|
|
60
|
-
--color-prettylights-syntax-string: #a5d6ff;
|
|
61
|
-
--color-prettylights-syntax-variable: #ffa657;
|
|
62
|
-
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
|
|
63
|
-
--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
|
|
64
|
-
--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
|
|
65
|
-
--color-prettylights-syntax-carriage-return-text: #f0f6fc;
|
|
66
|
-
--color-prettylights-syntax-carriage-return-bg: #b62324;
|
|
67
|
-
--color-prettylights-syntax-string-regexp: #7ee787;
|
|
68
|
-
--color-prettylights-syntax-markup-list: #f2cc60;
|
|
69
|
-
--color-prettylights-syntax-markup-heading: #1f6feb;
|
|
70
|
-
--color-prettylights-syntax-markup-italic: #c9d1d9;
|
|
71
|
-
--color-prettylights-syntax-markup-bold: #c9d1d9;
|
|
72
|
-
--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
|
|
73
|
-
--color-prettylights-syntax-markup-deleted-bg: #67060c;
|
|
74
|
-
--color-prettylights-syntax-markup-inserted-text: #aff5b4;
|
|
75
|
-
--color-prettylights-syntax-markup-inserted-bg: #033a16;
|
|
76
|
-
--color-prettylights-syntax-markup-changed-text: #ffdfb6;
|
|
77
|
-
--color-prettylights-syntax-markup-changed-bg: #5a1e02;
|
|
78
|
-
--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
|
|
79
|
-
--color-prettylights-syntax-markup-ignored-bg: #1158c7;
|
|
80
|
-
--color-prettylights-syntax-meta-diff-range: #d2a8ff;
|
|
81
|
-
--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
|
|
82
|
-
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
|
|
83
|
-
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
|
|
84
|
-
--color-fg-default: #c9d1d9;
|
|
85
|
-
--color-fg-muted: #8b949e;
|
|
86
|
-
--color-fg-subtle: #484f58;
|
|
87
|
-
--color-canvas-default: #0d1117;
|
|
88
|
-
--color-canvas-subtle: #161b22;
|
|
89
|
-
--color-border-default: #30363d;
|
|
90
|
-
--color-border-muted: #21262d;
|
|
91
|
-
--color-neutral-muted: rgba(110,118,129,0.4);
|
|
92
|
-
--color-accent-fg: #58a6ff;
|
|
93
|
-
--color-accent-emphasis: #1f6feb;
|
|
94
|
-
--color-attention-subtle: rgba(187,128,9,0.15);
|
|
95
|
-
--color-danger-fg: #f85149;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.markdown-body {
|
|
99
|
-
-webkit-text-size-adjust: 100%;
|
|
100
|
-
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
|
|
101
|
-
font-size: 16px;
|
|
102
|
-
line-height: 1.5;
|
|
103
|
-
word-wrap: break-word;
|
|
104
|
-
color: var(--color-fg-default);
|
|
105
|
-
background-color: var(--color-canvas-default);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host details,
|
|
109
|
-
:host figcaption,
|
|
110
|
-
:host figure {
|
|
111
|
-
display: block;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:host summary {
|
|
115
|
-
display: list-item;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host [hidden] {
|
|
119
|
-
display: none !important;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:host a {
|
|
123
|
-
background-color: transparent;
|
|
124
|
-
color: var(--color-accent-fg);
|
|
125
|
-
text-decoration: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:host a:active,
|
|
129
|
-
:host a:hover {
|
|
130
|
-
outline-width: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:host abbr[title] {
|
|
134
|
-
border-bottom: none;
|
|
135
|
-
text-decoration: underline dotted;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
:host b,
|
|
139
|
-
:host strong {
|
|
140
|
-
font-weight: 600;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:host dfn {
|
|
144
|
-
font-style: italic;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:host h1 {
|
|
148
|
-
margin: .67em 0;
|
|
149
|
-
font-weight: 600;
|
|
150
|
-
padding-bottom: .3em;
|
|
151
|
-
font-size: 2em;
|
|
152
|
-
border-bottom: 1px solid var(--color-border-muted);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
:host mark {
|
|
156
|
-
background-color: var(--color-attention-subtle);
|
|
157
|
-
color: var(--color-text-primary);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
:host small {
|
|
161
|
-
font-size: 90%;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host sub,
|
|
165
|
-
:host sup {
|
|
166
|
-
font-size: 75%;
|
|
167
|
-
line-height: 0;
|
|
168
|
-
position: relative;
|
|
169
|
-
vertical-align: baseline;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:host sub {
|
|
173
|
-
bottom: -0.25em;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:host sup {
|
|
177
|
-
top: -0.5em;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:host img {
|
|
181
|
-
border-style: none;
|
|
182
|
-
max-width: 100%;
|
|
183
|
-
box-sizing: content-box;
|
|
184
|
-
background-color: var(--color-canvas-default);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:host code,
|
|
188
|
-
:host kbd,
|
|
189
|
-
:host pre,
|
|
190
|
-
:host samp {
|
|
191
|
-
font-family: monospace,monospace;
|
|
192
|
-
font-size: 1em;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
:host figure {
|
|
196
|
-
margin: 1em 40px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
:host hr {
|
|
200
|
-
box-sizing: content-box;
|
|
201
|
-
overflow: hidden;
|
|
202
|
-
background: transparent;
|
|
203
|
-
border-bottom: 1px solid var(--color-border-muted);
|
|
204
|
-
height: .25em;
|
|
205
|
-
padding: 0;
|
|
206
|
-
margin: 24px 0;
|
|
207
|
-
background-color: var(--color-border-default);
|
|
208
|
-
border: 0;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
:host input {
|
|
212
|
-
font: inherit;
|
|
213
|
-
margin: 0;
|
|
214
|
-
overflow: visible;
|
|
215
|
-
font-family: inherit;
|
|
216
|
-
font-size: inherit;
|
|
217
|
-
line-height: inherit;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
:host [type=button],
|
|
221
|
-
:host [type=reset],
|
|
222
|
-
:host [type=submit] {
|
|
223
|
-
-webkit-appearance: button;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
:host [type=button]::-moz-focus-inner,
|
|
227
|
-
:host [type=reset]::-moz-focus-inner,
|
|
228
|
-
:host [type=submit]::-moz-focus-inner {
|
|
229
|
-
border-style: none;
|
|
230
|
-
padding: 0;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
:host [type=button]:-moz-focusring,
|
|
234
|
-
:host [type=reset]:-moz-focusring,
|
|
235
|
-
:host [type=submit]:-moz-focusring {
|
|
236
|
-
outline: 1px dotted ButtonText;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
:host [type=checkbox],
|
|
240
|
-
:host [type=radio] {
|
|
241
|
-
box-sizing: border-box;
|
|
242
|
-
padding: 0;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
:host [type=number]::-webkit-inner-spin-button,
|
|
246
|
-
:host [type=number]::-webkit-outer-spin-button {
|
|
247
|
-
height: auto;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
:host [type=search] {
|
|
251
|
-
-webkit-appearance: textfield;
|
|
252
|
-
outline-offset: -2px;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
:host [type=search]::-webkit-search-cancel-button,
|
|
256
|
-
:host [type=search]::-webkit-search-decoration {
|
|
257
|
-
-webkit-appearance: none;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
:host ::-webkit-input-placeholder {
|
|
261
|
-
color: inherit;
|
|
262
|
-
opacity: .54;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
:host ::-webkit-file-upload-button {
|
|
266
|
-
-webkit-appearance: button;
|
|
267
|
-
font: inherit;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
:host a:hover {
|
|
271
|
-
text-decoration: underline;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
:host hr::before {
|
|
275
|
-
display: table;
|
|
276
|
-
content: "";
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
:host hr::after {
|
|
280
|
-
display: table;
|
|
281
|
-
clear: both;
|
|
282
|
-
content: "";
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
:host table {
|
|
286
|
-
border-spacing: 0;
|
|
287
|
-
border-collapse: collapse;
|
|
288
|
-
display: block;
|
|
289
|
-
width: max-content;
|
|
290
|
-
max-width: 100%;
|
|
291
|
-
overflow: auto;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
:host td,
|
|
295
|
-
:host th {
|
|
296
|
-
padding: 0;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
:host details summary {
|
|
300
|
-
cursor: pointer;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
:host details:not([open])>*:not(summary) {
|
|
304
|
-
display: none !important;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
:host kbd {
|
|
308
|
-
display: inline-block;
|
|
309
|
-
padding: 3px 5px;
|
|
310
|
-
font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
|
|
311
|
-
line-height: 10px;
|
|
312
|
-
color: var(--color-fg-default);
|
|
313
|
-
vertical-align: middle;
|
|
314
|
-
background-color: var(--color-canvas-subtle);
|
|
315
|
-
border: solid 1px var(--color-neutral-muted);
|
|
316
|
-
border-bottom-color: var(--color-neutral-muted);
|
|
317
|
-
border-radius: 6px;
|
|
318
|
-
box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
:host h1,
|
|
322
|
-
:host h2,
|
|
323
|
-
:host h3,
|
|
324
|
-
:host h4,
|
|
325
|
-
:host h5,
|
|
326
|
-
:host h6 {
|
|
327
|
-
margin-top: 24px;
|
|
328
|
-
margin-bottom: 16px;
|
|
329
|
-
font-weight: 600;
|
|
330
|
-
line-height: 1.25;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
:host h2 {
|
|
334
|
-
font-weight: 600;
|
|
335
|
-
padding-bottom: .3em;
|
|
336
|
-
font-size: 1.5em;
|
|
337
|
-
border-bottom: 1px solid var(--color-border-muted);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
:host h3 {
|
|
341
|
-
font-weight: 600;
|
|
342
|
-
font-size: 1.25em;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
:host h4 {
|
|
346
|
-
font-weight: 600;
|
|
347
|
-
font-size: 1em;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
:host h5 {
|
|
351
|
-
font-weight: 600;
|
|
352
|
-
font-size: .875em;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
:host h6 {
|
|
356
|
-
font-weight: 600;
|
|
357
|
-
font-size: .85em;
|
|
358
|
-
color: var(--color-fg-muted);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
:host p {
|
|
362
|
-
margin-top: 0;
|
|
363
|
-
margin-bottom: 10px;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
:host blockquote {
|
|
367
|
-
margin: 0;
|
|
368
|
-
padding: 0 1em;
|
|
369
|
-
color: var(--color-fg-muted);
|
|
370
|
-
border-left: .25em solid var(--color-border-default);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
:host ul,
|
|
374
|
-
:host ol {
|
|
375
|
-
margin-top: 0;
|
|
376
|
-
margin-bottom: 0;
|
|
377
|
-
padding-left: 2em;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
:host ol ol,
|
|
381
|
-
:host ul ol {
|
|
382
|
-
list-style-type: lower-roman;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
:host ul ul ol,
|
|
386
|
-
:host ul ol ol,
|
|
387
|
-
:host ol ul ol,
|
|
388
|
-
:host ol ol ol {
|
|
389
|
-
list-style-type: lower-alpha;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
:host dd {
|
|
393
|
-
margin-left: 0;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
:host tt,
|
|
397
|
-
:host code {
|
|
398
|
-
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
|
|
399
|
-
font-size: 12px;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:host pre {
|
|
403
|
-
margin-top: 0;
|
|
404
|
-
margin-bottom: 0;
|
|
405
|
-
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
|
|
406
|
-
font-size: 12px;
|
|
407
|
-
word-wrap: normal;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
:host .octicon {
|
|
411
|
-
display: inline-block;
|
|
412
|
-
overflow: visible !important;
|
|
413
|
-
vertical-align: text-bottom;
|
|
414
|
-
fill: currentColor;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
:host ::placeholder {
|
|
418
|
-
color: var(--color-fg-subtle);
|
|
419
|
-
opacity: 1;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
:host input::-webkit-outer-spin-button,
|
|
423
|
-
:host input::-webkit-inner-spin-button {
|
|
424
|
-
margin: 0;
|
|
425
|
-
-webkit-appearance: none;
|
|
426
|
-
appearance: none;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.token.comment, .token.prolog, .token.doctype, .token.cdata {
|
|
430
|
-
color: var(--color-prettylights-syntax-comment);
|
|
431
|
-
}
|
|
432
|
-
.token.namespace { opacity: 0.7; }
|
|
433
|
-
.token.tag, .token.selector, .token.constant, .token.symbol, .token.deleted {
|
|
434
|
-
color: var(--color-prettylights-syntax-entity-tag);
|
|
435
|
-
}
|
|
436
|
-
.token.maybe-class-name {
|
|
437
|
-
color: var(--color-prettylights-syntax-variable);
|
|
438
|
-
}
|
|
439
|
-
.token.property-access, .token.operator, .token.boolean, .token.number, .token.selector .token.class, .token.attr-name, .token.string, .token.char, .token.builtin {
|
|
440
|
-
color: var(--color-prettylights-syntax-constant);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.token.deleted {
|
|
444
|
-
color: var(--color-prettylights-syntax-markup-deleted-text);
|
|
445
|
-
}
|
|
446
|
-
.token.property {
|
|
447
|
-
color: var(--color-prettylights-syntax-constant);
|
|
448
|
-
}
|
|
449
|
-
.token.punctuation {
|
|
450
|
-
color: var(--color-prettylights-syntax-markup-bold);
|
|
451
|
-
}
|
|
452
|
-
.token.function {
|
|
453
|
-
color: var(--color-prettylights-syntax-entity);
|
|
454
|
-
}
|
|
455
|
-
.code-line .token.deleted {
|
|
456
|
-
background-color: var(--color-prettylights-syntax-markup-deleted-bg);
|
|
457
|
-
}
|
|
458
|
-
.token.inserted {
|
|
459
|
-
color: var(--color-prettylights-syntax-markup-inserted-text);
|
|
460
|
-
}
|
|
461
|
-
.code-line .token.inserted {
|
|
462
|
-
background-color: var(--color-prettylights-syntax-markup-inserted-bg);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.token.variable {
|
|
466
|
-
color: var(--color-prettylights-syntax-constant);
|
|
467
|
-
}
|
|
468
|
-
.token.entity, .token.url, .language-css .token.string, .style .token.string {
|
|
469
|
-
color: var(--color-prettylights-syntax-string);
|
|
470
|
-
}
|
|
471
|
-
.token.color, .token.atrule, .token.attr-value, .token.function, .token.class-name {
|
|
472
|
-
color: var(--color-prettylights-syntax-string);
|
|
473
|
-
}
|
|
474
|
-
.token.rule, .token.regex, .token.important, .token.keyword {
|
|
475
|
-
color: var(--color-prettylights-syntax-keyword);
|
|
476
|
-
}
|
|
477
|
-
.token.coord {
|
|
478
|
-
color: var(--color-prettylights-syntax-meta-diff-range);
|
|
479
|
-
}
|
|
480
|
-
.token.important, .token.bold { font-weight: bold; }
|
|
481
|
-
.token.italic { font-style: italic; }
|
|
482
|
-
.token.entity { cursor: help; }
|
|
483
|
-
|
|
484
|
-
:host [data-catalyst] {
|
|
485
|
-
display: block;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
:host g-emoji {
|
|
489
|
-
font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
|
490
|
-
font-size: 1em;
|
|
491
|
-
font-style: normal !important;
|
|
492
|
-
font-weight: 400;
|
|
493
|
-
line-height: 1;
|
|
494
|
-
vertical-align: -0.075em;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
:host g-emoji img {
|
|
498
|
-
width: 1em;
|
|
499
|
-
height: 1em;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.markdown-body::before {
|
|
503
|
-
display: table;
|
|
504
|
-
content: "";
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.markdown-body::after {
|
|
508
|
-
display: table;
|
|
509
|
-
clear: both;
|
|
510
|
-
content: "";
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.markdown-body>*:first-child {
|
|
514
|
-
margin-top: 0 !important;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
.markdown-body>*:last-child {
|
|
518
|
-
margin-bottom: 0 !important;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
:host a:not([href]) {
|
|
522
|
-
color: inherit;
|
|
523
|
-
text-decoration: none;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
:host .absent {
|
|
527
|
-
color: var(--color-danger-fg);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
:host .anchor {
|
|
531
|
-
float: left;
|
|
532
|
-
padding-right: 4px;
|
|
533
|
-
margin-left: -20px;
|
|
534
|
-
line-height: 1;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
:host .anchor:focus {
|
|
538
|
-
outline: none;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
:host p,
|
|
542
|
-
:host blockquote,
|
|
543
|
-
:host ul,
|
|
544
|
-
:host ol,
|
|
545
|
-
:host dl,
|
|
546
|
-
:host table,
|
|
547
|
-
:host pre,
|
|
548
|
-
:host details {
|
|
549
|
-
margin-top: 0;
|
|
550
|
-
margin-bottom: 16px;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
:host blockquote>:first-child {
|
|
554
|
-
margin-top: 0;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
:host blockquote>:last-child {
|
|
558
|
-
margin-bottom: 0;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
:host sup>a::before {
|
|
562
|
-
content: "[";
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
:host sup>a::after {
|
|
566
|
-
content: "]";
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
:host h1 .octicon-link,
|
|
570
|
-
:host h2 .octicon-link,
|
|
571
|
-
:host h3 .octicon-link,
|
|
572
|
-
:host h4 .octicon-link,
|
|
573
|
-
:host h5 .octicon-link,
|
|
574
|
-
:host h6 .octicon-link {
|
|
575
|
-
color: var(--color-fg-default);
|
|
576
|
-
vertical-align: middle;
|
|
577
|
-
visibility: hidden;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
:host h1:hover .anchor,
|
|
581
|
-
:host h2:hover .anchor,
|
|
582
|
-
:host h3:hover .anchor,
|
|
583
|
-
:host h4:hover .anchor,
|
|
584
|
-
:host h5:hover .anchor,
|
|
585
|
-
:host h6:hover .anchor {
|
|
586
|
-
text-decoration: none;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
:host h1:hover .anchor .octicon-link,
|
|
590
|
-
:host h2:hover .anchor .octicon-link,
|
|
591
|
-
:host h3:hover .anchor .octicon-link,
|
|
592
|
-
:host h4:hover .anchor .octicon-link,
|
|
593
|
-
:host h5:hover .anchor .octicon-link,
|
|
594
|
-
:host h6:hover .anchor .octicon-link {
|
|
595
|
-
visibility: visible;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
:host h1 tt,
|
|
599
|
-
:host h1 code,
|
|
600
|
-
:host h2 tt,
|
|
601
|
-
:host h2 code,
|
|
602
|
-
:host h3 tt,
|
|
603
|
-
:host h3 code,
|
|
604
|
-
:host h4 tt,
|
|
605
|
-
:host h4 code,
|
|
606
|
-
:host h5 tt,
|
|
607
|
-
:host h5 code,
|
|
608
|
-
:host h6 tt,
|
|
609
|
-
:host h6 code {
|
|
610
|
-
padding: 0 .2em;
|
|
611
|
-
font-size: inherit;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
:host ul.no-list,
|
|
615
|
-
:host ol.no-list {
|
|
616
|
-
padding: 0;
|
|
617
|
-
list-style-type: none;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
:host ol[type="1"] {
|
|
621
|
-
list-style-type: decimal;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
:host ol[type=a] {
|
|
625
|
-
list-style-type: lower-alpha;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
:host ol[type=i] {
|
|
629
|
-
list-style-type: lower-roman;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
:host div>ol:not([type]) {
|
|
633
|
-
list-style-type: decimal;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
:host ul ul,
|
|
637
|
-
:host ul ol,
|
|
638
|
-
:host ol ol,
|
|
639
|
-
:host ol ul {
|
|
640
|
-
margin-top: 0;
|
|
641
|
-
margin-bottom: 0;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
:host li>p {
|
|
645
|
-
margin-top: 16px;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
:host li+li {
|
|
649
|
-
margin-top: .25em;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
:host dl {
|
|
653
|
-
padding: 0;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
:host dl dt {
|
|
657
|
-
padding: 0;
|
|
658
|
-
margin-top: 16px;
|
|
659
|
-
font-size: 1em;
|
|
660
|
-
font-style: italic;
|
|
661
|
-
font-weight: 600;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
:host dl dd {
|
|
665
|
-
padding: 0 16px;
|
|
666
|
-
margin-bottom: 16px;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
:host table th {
|
|
670
|
-
font-weight: 600;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
:host table th,
|
|
674
|
-
:host table td {
|
|
675
|
-
padding: 6px 13px;
|
|
676
|
-
border: 1px solid var(--color-border-default);
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
:host table tr {
|
|
680
|
-
background-color: var(--color-canvas-default);
|
|
681
|
-
border-top: 1px solid var(--color-border-muted);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
:host table tr:nth-child(2n) {
|
|
685
|
-
background-color: var(--color-canvas-subtle);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
:host table img {
|
|
689
|
-
background-color: transparent;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
:host img[align=right] {
|
|
693
|
-
padding-left: 20px;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
:host img[align=left] {
|
|
697
|
-
padding-right: 20px;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
:host .emoji {
|
|
701
|
-
max-width: none;
|
|
702
|
-
vertical-align: text-top;
|
|
703
|
-
background-color: transparent;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
:host span.frame {
|
|
707
|
-
display: block;
|
|
708
|
-
overflow: hidden;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
:host span.frame>span {
|
|
712
|
-
display: block;
|
|
713
|
-
float: left;
|
|
714
|
-
width: auto;
|
|
715
|
-
padding: 7px;
|
|
716
|
-
margin: 13px 0 0;
|
|
717
|
-
overflow: hidden;
|
|
718
|
-
border: 1px solid var(--color-border-default);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
:host span.frame span img {
|
|
722
|
-
display: block;
|
|
723
|
-
float: left;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
:host span.frame span span {
|
|
727
|
-
display: block;
|
|
728
|
-
padding: 5px 0 0;
|
|
729
|
-
clear: both;
|
|
730
|
-
color: var(--color-fg-default);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
:host span.align-center {
|
|
734
|
-
display: block;
|
|
735
|
-
overflow: hidden;
|
|
736
|
-
clear: both;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
:host span.align-center>span {
|
|
740
|
-
display: block;
|
|
741
|
-
margin: 13px auto 0;
|
|
742
|
-
overflow: hidden;
|
|
743
|
-
text-align: center;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
:host span.align-center span img {
|
|
747
|
-
margin: 0 auto;
|
|
748
|
-
text-align: center;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
:host span.align-right {
|
|
752
|
-
display: block;
|
|
753
|
-
overflow: hidden;
|
|
754
|
-
clear: both;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
:host span.align-right>span {
|
|
758
|
-
display: block;
|
|
759
|
-
margin: 13px 0 0;
|
|
760
|
-
overflow: hidden;
|
|
761
|
-
text-align: right;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
:host span.align-right span img {
|
|
765
|
-
margin: 0;
|
|
766
|
-
text-align: right;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
:host span.float-left {
|
|
770
|
-
display: block;
|
|
771
|
-
float: left;
|
|
772
|
-
margin-right: 13px;
|
|
773
|
-
overflow: hidden;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
:host span.float-left span {
|
|
777
|
-
margin: 13px 0 0;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
:host span.float-right {
|
|
781
|
-
display: block;
|
|
782
|
-
float: right;
|
|
783
|
-
margin-left: 13px;
|
|
784
|
-
overflow: hidden;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
:host span.float-right>span {
|
|
788
|
-
display: block;
|
|
789
|
-
margin: 13px auto 0;
|
|
790
|
-
overflow: hidden;
|
|
791
|
-
text-align: right;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
:host code,
|
|
795
|
-
:host tt {
|
|
796
|
-
padding: .2em .4em;
|
|
797
|
-
margin: 0;
|
|
798
|
-
font-size: 85%;
|
|
799
|
-
background-color: var(--color-neutral-muted);
|
|
800
|
-
border-radius: 6px;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
:host code br,
|
|
804
|
-
:host tt br {
|
|
805
|
-
display: none;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
:host del code {
|
|
809
|
-
text-decoration: inherit;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
:host pre code {
|
|
813
|
-
font-size: 100%;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
:host pre>code {
|
|
817
|
-
padding: 0;
|
|
818
|
-
margin: 0;
|
|
819
|
-
word-break: normal;
|
|
820
|
-
white-space: pre;
|
|
821
|
-
background: transparent;
|
|
822
|
-
border: 0;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
:host .highlight {
|
|
826
|
-
margin-bottom: 16px;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
:host .highlight pre {
|
|
830
|
-
margin-bottom: 0;
|
|
831
|
-
word-break: normal;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
:host .highlight pre,
|
|
835
|
-
:host pre {
|
|
836
|
-
position: relative;
|
|
837
|
-
padding: 16px;
|
|
838
|
-
overflow: auto;
|
|
839
|
-
font-size: 85%;
|
|
840
|
-
line-height: 1.45;
|
|
841
|
-
background-color: var(--color-canvas-subtle);
|
|
842
|
-
border-radius: 6px;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
:host pre code,
|
|
846
|
-
:host pre tt {
|
|
847
|
-
display: inline;
|
|
848
|
-
max-width: auto;
|
|
849
|
-
padding: 0;
|
|
850
|
-
margin: 0;
|
|
851
|
-
overflow: visible;
|
|
852
|
-
line-height: inherit;
|
|
853
|
-
word-wrap: normal;
|
|
854
|
-
background-color: transparent;
|
|
855
|
-
border: 0;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
:host .csv-data td,
|
|
859
|
-
:host .csv-data th {
|
|
860
|
-
padding: 5px;
|
|
861
|
-
overflow: hidden;
|
|
862
|
-
font-size: 12px;
|
|
863
|
-
line-height: 1;
|
|
864
|
-
text-align: left;
|
|
865
|
-
white-space: nowrap;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
:host .csv-data .blob-num {
|
|
869
|
-
padding: 10px 8px 9px;
|
|
870
|
-
text-align: right;
|
|
871
|
-
background: var(--color-canvas-default);
|
|
872
|
-
border: 0;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
:host .csv-data tr {
|
|
876
|
-
border-top: 0;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
:host .csv-data th {
|
|
880
|
-
font-weight: 600;
|
|
881
|
-
background: var(--color-canvas-subtle);
|
|
882
|
-
border-top: 0;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
:host .footnotes {
|
|
886
|
-
font-size: 12px;
|
|
887
|
-
color: var(--color-fg-muted);
|
|
888
|
-
border-top: 1px solid var(--color-border-default);
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
:host .footnotes ol {
|
|
892
|
-
padding-left: 16px;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
:host .footnotes li {
|
|
896
|
-
position: relative;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
:host .footnotes li:target::before {
|
|
900
|
-
position: absolute;
|
|
901
|
-
top: -8px;
|
|
902
|
-
right: -8px;
|
|
903
|
-
bottom: -8px;
|
|
904
|
-
left: -24px;
|
|
905
|
-
pointer-events: none;
|
|
906
|
-
content: "";
|
|
907
|
-
border: 2px solid var(--color-accent-emphasis);
|
|
908
|
-
border-radius: 6px;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
:host .footnotes li:target {
|
|
912
|
-
color: var(--color-fg-default);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
:host .footnotes .data-footnote-backref g-emoji {
|
|
916
|
-
font-family: monospace;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
:host .task-list-item {
|
|
920
|
-
list-style-type: none;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
:host .task-list-item label {
|
|
924
|
-
font-weight: 400;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
:host .task-list-item.enabled label {
|
|
928
|
-
cursor: pointer;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
:host .task-list-item+.task-list-item {
|
|
932
|
-
margin-top: 3px;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
:host .task-list-item .handle {
|
|
936
|
-
display: none;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
:host .task-list-item-checkbox,
|
|
940
|
-
:host input[type="checkbox"] {
|
|
941
|
-
margin: 0 .2em .25em -1.6em;
|
|
942
|
-
vertical-align: middle;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
:host .contains-task-list:dir(rtl) .task-list-item-checkbox,
|
|
946
|
-
:host .contains-task-list:dir(rtl) input[type="checkbox"] {
|
|
947
|
-
margin: 0 -1.6em .25em .2em;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
:host ::-webkit-calendar-picker-indicator {
|
|
951
|
-
filter: invert(50%);
|
|
952
|
-
}
|
|
9
|
+
:host [data-color-mode*='light'] { --color-prettylights-syntax-comment: #6e7781; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #8250df; --color-prettylights-syntax-storage-modifier-import: #24292f; --color-prettylights-syntax-entity-tag: #116329; --color-prettylights-syntax-keyword: #cf222e; --color-prettylights-syntax-string: #0a3069; --color-prettylights-syntax-variable: #953800; --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; --color-prettylights-syntax-invalid-illegal-bg: #82071e; --color-prettylights-syntax-carriage-return-text: #f6f8fa; --color-prettylights-syntax-carriage-return-bg: #cf222e; --color-prettylights-syntax-string-regexp: #116329; --color-prettylights-syntax-markup-list: #3b2300; --color-prettylights-syntax-markup-heading: #0550ae; --color-prettylights-syntax-markup-italic: #24292f; --color-prettylights-syntax-markup-bold: #24292f; --color-prettylights-syntax-markup-deleted-text: #82071e; --color-prettylights-syntax-markup-deleted-bg: #FFEBE9; --color-prettylights-syntax-markup-inserted-text: #116329; --color-prettylights-syntax-markup-inserted-bg: #dafbe1; --color-prettylights-syntax-markup-changed-text: #953800; --color-prettylights-syntax-markup-changed-bg: #ffd8b5; --color-prettylights-syntax-markup-ignored-text: #eaeef2; --color-prettylights-syntax-markup-ignored-bg: #0550ae; --color-prettylights-syntax-meta-diff-range: #8250df; --color-prettylights-syntax-brackethighlighter-angle: #57606a; --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; --color-prettylights-syntax-constant-other-reference-link: #0a3069; --color-fg-default: #24292f; --color-fg-muted: #57606a; --color-fg-subtle: #6e7781; --color-canvas-default: #ffffff; --color-canvas-subtle: #f6f8fa; --color-border-default: #d0d7de; --color-border-muted: hsla(210,18%,87%,1); --color-neutral-muted: rgba(175,184,193,0.2); --color-accent-fg: #0969da; --color-accent-emphasis: #0969da; --color-attention-subtle: #fff8c5; --color-danger-fg: #cf222e; } :host [data-color-mode*='dark'] { --color-prettylights-syntax-comment: #8b949e; --color-prettylights-syntax-constant: #79c0ff; --color-prettylights-syntax-entity: #d2a8ff; --color-prettylights-syntax-storage-modifier-import: #c9d1d9; --color-prettylights-syntax-entity-tag: #7ee787; --color-prettylights-syntax-keyword: #ff7b72; --color-prettylights-syntax-string: #a5d6ff; --color-prettylights-syntax-variable: #ffa657; --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; --color-prettylights-syntax-invalid-illegal-text: #f0f6fc; --color-prettylights-syntax-invalid-illegal-bg: #8e1519; --color-prettylights-syntax-carriage-return-text: #f0f6fc; --color-prettylights-syntax-carriage-return-bg: #b62324; --color-prettylights-syntax-string-regexp: #7ee787; --color-prettylights-syntax-markup-list: #f2cc60; --color-prettylights-syntax-markup-heading: #1f6feb; --color-prettylights-syntax-markup-italic: #c9d1d9; --color-prettylights-syntax-markup-bold: #c9d1d9; --color-prettylights-syntax-markup-deleted-text: #ffdcd7; --color-prettylights-syntax-markup-deleted-bg: #67060c; --color-prettylights-syntax-markup-inserted-text: #aff5b4; --color-prettylights-syntax-markup-inserted-bg: #033a16; --color-prettylights-syntax-markup-changed-text: #ffdfb6; --color-prettylights-syntax-markup-changed-bg: #5a1e02; --color-prettylights-syntax-markup-ignored-text: #c9d1d9; --color-prettylights-syntax-markup-ignored-bg: #1158c7; --color-prettylights-syntax-meta-diff-range: #d2a8ff; --color-prettylights-syntax-brackethighlighter-angle: #8b949e; --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; --color-fg-default: #c9d1d9; --color-fg-muted: #8b949e; --color-fg-subtle: #484f58; --color-canvas-default: #0d1117; --color-canvas-subtle: #161b22; --color-border-default: #30363d; --color-border-muted: #21262d; --color-neutral-muted: rgba(110,118,129,0.4); --color-accent-fg: #58a6ff; --color-accent-emphasis: #1f6feb; --color-attention-subtle: rgba(187,128,9,0.15); --color-danger-fg: #f85149; } .markdown-body { -webkit-text-size-adjust: 100%; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; font-size: 16px; line-height: 1.5; word-wrap: break-word; color: var(--color-fg-default); background-color: var(--color-canvas-default); } :host details, :host figcaption, :host figure { display: block; } :host summary { display: list-item; } :host [hidden] { display: none !important; } :host a { background-color: transparent; color: var(--color-accent-fg); text-decoration: none; } :host a:active, :host a:hover { outline-width: 0; } :host abbr[title] { border-bottom: none; text-decoration: underline dotted; } :host b, :host strong { font-weight: 600; } :host dfn { font-style: italic; } :host h1 { margin: .67em 0; font-weight: 600; padding-bottom: .3em; font-size: 2em; border-bottom: 1px solid var(--color-border-muted); } :host mark { background-color: var(--color-attention-subtle); color: var(--color-text-primary); } :host small { font-size: 90%; } :host sub, :host sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } :host sub { bottom: -0.25em; } :host sup { top: -0.5em; } :host img { border-style: none; max-width: 100%; box-sizing: content-box; background-color: var(--color-canvas-default); } :host code, :host kbd, :host pre, :host samp { font-family: monospace,monospace; font-size: 1em; } :host figure { margin: 1em 40px; } :host hr { box-sizing: content-box; overflow: hidden; background: transparent; border-bottom: 1px solid var(--color-border-muted); height: .25em; padding: 0; margin: 24px 0; background-color: var(--color-border-default); border: 0; } :host input { font: inherit; margin: 0; overflow: visible; font-family: inherit; font-size: inherit; line-height: inherit; } :host [type=button], :host [type=reset], :host [type=submit] { -webkit-appearance: button; } :host [type=button]::-moz-focus-inner, :host [type=reset]::-moz-focus-inner, :host [type=submit]::-moz-focus-inner { border-style: none; padding: 0; } :host [type=button]:-moz-focusring, :host [type=reset]:-moz-focusring, :host [type=submit]:-moz-focusring { outline: 1px dotted ButtonText; } :host [type=checkbox], :host [type=radio] { box-sizing: border-box; padding: 0; } :host [type=number]::-webkit-inner-spin-button, :host [type=number]::-webkit-outer-spin-button { height: auto; } :host [type=search] { -webkit-appearance: textfield; outline-offset: -2px; } :host [type=search]::-webkit-search-cancel-button, :host [type=search]::-webkit-search-decoration { -webkit-appearance: none; } :host ::-webkit-input-placeholder { color: inherit; opacity: .54; } :host ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } :host a:hover { text-decoration: underline; } :host hr::before { display: table; content: ""; } :host hr::after { display: table; clear: both; content: ""; } :host table { border-spacing: 0; border-collapse: collapse; display: block; width: max-content; max-width: 100%; overflow: auto; } :host td, :host th { padding: 0; } :host details summary { cursor: pointer; } :host details:not([open])>*:not(summary) { display: none !important; } :host kbd { display: inline-block; padding: 3px 5px; font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; line-height: 10px; color: var(--color-fg-default); vertical-align: middle; background-color: var(--color-canvas-subtle); border: solid 1px var(--color-neutral-muted); border-bottom-color: var(--color-neutral-muted); border-radius: 6px; box-shadow: inset 0 -1px 0 var(--color-neutral-muted); } :host h1, :host h2, :host h3, :host h4, :host h5, :host h6 { margin-top: 24px; margin-bottom: 16px; font-weight: 600; line-height: 1.25; } :host h2 { font-weight: 600; padding-bottom: .3em; font-size: 1.5em; border-bottom: 1px solid var(--color-border-muted); } :host h3 { font-weight: 600; font-size: 1.25em; } :host h4 { font-weight: 600; font-size: 1em; } :host h5 { font-weight: 600; font-size: .875em; } :host h6 { font-weight: 600; font-size: .85em; color: var(--color-fg-muted); } :host p { margin-top: 0; margin-bottom: 10px; } :host blockquote { margin: 0; padding: 0 1em; color: var(--color-fg-muted); border-left: .25em solid var(--color-border-default); } :host ul, :host ol { margin-top: 0; margin-bottom: 0; padding-left: 2em; } :host ol ol, :host ul ol { list-style-type: lower-roman; } :host ul ul ol, :host ul ol ol, :host ol ul ol, :host ol ol ol { list-style-type: lower-alpha; } :host dd { margin-left: 0; } :host tt, :host code { font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; font-size: 12px; } :host pre { margin-top: 0; margin-bottom: 0; font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; font-size: 12px; word-wrap: normal; } :host .octicon { display: inline-block; overflow: visible !important; vertical-align: text-bottom; fill: currentColor; }
|
|
10
|
+
:host ::placeholder { color: var(--color-fg-subtle); opacity: 1; } :host input::-webkit-outer-spin-button, :host input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; appearance: none; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--color-prettylights-syntax-comment); } .token.namespace { opacity: 0.7; } .token.tag, .token.selector, .token.constant, .token.symbol, .token.deleted { color: var(--color-prettylights-syntax-entity-tag); } .token.maybe-class-name { color: var(--color-prettylights-syntax-variable); } .token.property-access, .token.operator, .token.boolean, .token.number, .token.selector .token.class, .token.attr-name, .token.string, .token.char, .token.builtin { color: var(--color-prettylights-syntax-constant); } .token.deleted { color: var(--color-prettylights-syntax-markup-deleted-text); } .token.property { color: var(--color-prettylights-syntax-constant); } .token.punctuation { color: var(--color-prettylights-syntax-markup-bold); } .token.function { color: var(--color-prettylights-syntax-entity); } .code-line .token.deleted { background-color: var(--color-prettylights-syntax-markup-deleted-bg); } .token.inserted { color: var(--color-prettylights-syntax-markup-inserted-text); } .code-line .token.inserted { background-color: var(--color-prettylights-syntax-markup-inserted-bg); } .token.variable { color: var(--color-prettylights-syntax-constant); } .token.entity, .token.url, .language-css .token.string, .style .token.string { color: var(--color-prettylights-syntax-string); } .token.color, .token.atrule, .token.attr-value, .token.function, .token.class-name { color: var(--color-prettylights-syntax-string); } .token.rule, .token.regex, .token.important, .token.keyword { color: var(--color-prettylights-syntax-keyword); } .token.coord { color: var(--color-prettylights-syntax-meta-diff-range); } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } :host [data-catalyst] { display: block; } :host g-emoji { font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 1em; font-style: normal !important; font-weight: 400; line-height: 1; vertical-align: -0.075em; } :host g-emoji img { width: 1em; height: 1em; } .markdown-body::before { display: table; content: ""; } .markdown-body::after { display: table; clear: both; content: ""; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } :host a:not([href]) { color: inherit; text-decoration: none; } :host .absent { color: var(--color-danger-fg); } :host .anchor { float: left; padding-right: 4px; margin-left: -20px; line-height: 1; } :host .anchor:focus { outline: none; } :host p, :host blockquote, :host ul, :host ol, :host dl, :host table, :host pre, :host details { margin-top: 0; margin-bottom: 16px; } :host blockquote>:first-child { margin-top: 0; } :host blockquote>:last-child { margin-bottom: 0; } :host sup>a::before { content: "["; } :host sup>a::after { content: "]"; } :host h1 .octicon-link, :host h2 .octicon-link, :host h3 .octicon-link, :host h4 .octicon-link, :host h5 .octicon-link, :host h6 .octicon-link { color: var(--color-fg-default); vertical-align: middle; visibility: hidden; } :host h1:hover .anchor, :host h2:hover .anchor, :host h3:hover .anchor, :host h4:hover .anchor, :host h5:hover .anchor, :host h6:hover .anchor { text-decoration: none; } :host h1:hover .anchor .octicon-link, :host h2:hover .anchor .octicon-link, :host h3:hover .anchor .octicon-link, :host h4:hover .anchor .octicon-link, :host h5:hover .anchor .octicon-link, :host h6:hover .anchor .octicon-link { visibility: visible; } :host h1 tt, :host h1 code, :host h2 tt, :host h2 code, :host h3 tt, :host h3 code, :host h4 tt, :host h4 code, :host h5 tt, :host h5 code, :host h6 tt, :host h6 code { padding: 0 .2em; font-size: inherit; } :host ul.no-list, :host ol.no-list { padding: 0; list-style-type: none; } :host ol[type="1"] { list-style-type: decimal; } :host ol[type=a] { list-style-type: lower-alpha; } :host ol[type=i] { list-style-type: lower-roman; } :host div>ol:not([type]) { list-style-type: decimal; } :host ul ul, :host ul ol, :host ol ol, :host ol ul { margin-top: 0; margin-bottom: 0; } :host li>p { margin-top: 16px; } :host li+li { margin-top: .25em; } :host dl { padding: 0; } :host dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: 600; } :host dl dd { padding: 0 16px; margin-bottom: 16px; } :host table th { font-weight: 600; } :host table th, :host table td { padding: 6px 13px; border: 1px solid var(--color-border-default); } :host table tr { background-color: var(--color-canvas-default); border-top: 1px solid var(--color-border-muted); } :host table tr:nth-child(2n) { background-color: var(--color-canvas-subtle); } :host table img { background-color: transparent; } :host img[align=right] { padding-left: 20px; } :host img[align=left] { padding-right: 20px; } :host .emoji { max-width: none; vertical-align: text-top; background-color: transparent; } :host span.frame { display: block; overflow: hidden; } :host span.frame>span { display: block; float: left; width: auto; padding: 7px; margin: 13px 0 0; overflow: hidden; border: 1px solid var(--color-border-default); } :host span.frame span img { display: block; float: left; } :host span.frame span span { display: block; padding: 5px 0 0; clear: both; color: var(--color-fg-default); } :host span.align-center { display: block; overflow: hidden; clear: both; } :host span.align-center>span { display: block; margin: 13px auto 0; overflow: hidden; text-align: center; } :host span.align-center span img { margin: 0 auto; text-align: center; } :host span.align-right { display: block; overflow: hidden; clear: both; } :host span.align-right>span { display: block; margin: 13px 0 0; overflow: hidden; text-align: right; } :host span.align-right span img { margin: 0; text-align: right; } :host span.float-left { display: block; float: left; margin-right: 13px; overflow: hidden; } :host span.float-left span { margin: 13px 0 0; } :host span.float-right { display: block; float: right; margin-left: 13px; overflow: hidden; } :host span.float-right>span { display: block; margin: 13px auto 0; overflow: hidden; text-align: right; } :host code, :host tt { padding: .2em .4em; margin: 0; font-size: 85%; background-color: var(--color-neutral-muted); border-radius: 6px; } :host code br, :host tt br { display: none; } :host del code { text-decoration: inherit; } :host pre code { font-size: 100%; } :host pre>code { padding: 0; margin: 0; word-break: normal; white-space: pre; background: transparent; border: 0; } :host .highlight { margin-bottom: 16px; } :host .highlight pre { margin-bottom: 0; word-break: normal; } :host .highlight pre, :host pre { position: relative; padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: var(--color-canvas-subtle); border-radius: 6px; } :host pre code, :host pre tt { display: inline; max-width: auto; padding: 0; margin: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } :host .csv-data td, :host .csv-data th { padding: 5px; overflow: hidden; font-size: 12px; line-height: 1; text-align: left; white-space: nowrap; } :host .csv-data .blob-num { padding: 10px 8px 9px; text-align: right; background: var(--color-canvas-default); border: 0; } :host .csv-data tr { border-top: 0; } :host .csv-data th { font-weight: 600; background: var(--color-canvas-subtle); border-top: 0; } :host .footnotes { font-size: 12px; color: var(--color-fg-muted); border-top: 1px solid var(--color-border-default); } :host .footnotes ol { padding-left: 16px; } :host .footnotes li { position: relative; } :host .footnotes li:target::before { position: absolute; top: -8px; right: -8px; bottom: -8px; left: -24px; pointer-events: none; content: ""; border: 2px solid var(--color-accent-emphasis); border-radius: 6px; } :host .footnotes li:target { color: var(--color-fg-default); } :host .footnotes .data-footnote-backref g-emoji { font-family: monospace; } :host .task-list-item { list-style-type: none; } :host .task-list-item label { font-weight: 400; } :host .task-list-item.enabled label { cursor: pointer; } :host .task-list-item+.task-list-item { margin-top: 3px; } :host .task-list-item .handle { display: none; } :host .task-list-item-checkbox, :host input[type="checkbox"] { margin: 0 .2em .25em -1.6em; vertical-align: middle; } :host .contains-task-list:dir(rtl) .task-list-item-checkbox, :host .contains-task-list:dir(rtl) input[type="checkbox"] { margin: 0 -1.6em .25em .2em; } :host ::-webkit-calendar-picker-indicator { filter: invert(50%); }
|
|
953
11
|
</style>
|
|
954
12
|
\`;
|
|
955
13
|
// See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html
|
|
@@ -1015,9 +73,12 @@ export class MarkdownStyle extends HTMLElement {
|
|
|
1015
73
|
}
|
|
1016
74
|
}
|
|
1017
75
|
customElements.define('markdown-style', MarkdownStyle);
|
|
1018
|
-
//# sourceMappingURL=index.js.map
|
|
1019
76
|
`;
|
|
1020
|
-
export function markdownStyle(child) {
|
|
77
|
+
export function markdownStyle(child, darkMode) {
|
|
78
|
+
const properties = {};
|
|
79
|
+
if (!darkMode) {
|
|
80
|
+
properties.theme = "light";
|
|
81
|
+
}
|
|
1021
82
|
return [{
|
|
1022
83
|
type: 'element',
|
|
1023
84
|
tagName: 'script',
|
|
@@ -1037,6 +98,7 @@ export function markdownStyle(child) {
|
|
|
1037
98
|
},
|
|
1038
99
|
children: [{
|
|
1039
100
|
type: 'element',
|
|
101
|
+
properties,
|
|
1040
102
|
tagName: 'markdown-style',
|
|
1041
103
|
children: child
|
|
1042
104
|
}]
|