pantsdown 1.1.3 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantsdown",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "author": "wallpants",
5
5
  "description": "The markdown parser",
6
6
  "license": "MIT",
@@ -10,9 +10,16 @@
10
10
  "url": "git://github.com/wallpants/pantsdown.git"
11
11
  },
12
12
  "exports": {
13
- "types": "./src/index.ts",
14
- "bun": "./src/index.ts",
15
- "import": "./src/index.ts"
13
+ "./styles.css": {
14
+ "types": "./styles.css.d.ts",
15
+ "bun": "./styles.css",
16
+ "import": "./styles.css"
17
+ },
18
+ ".": {
19
+ "types": "./src/index.ts",
20
+ "bun": "./src/index.ts",
21
+ "import": "./src/index.ts"
22
+ }
16
23
  },
17
24
  "config": {
18
25
  "commitizen": {
package/src/utils.ts CHANGED
@@ -17,6 +17,8 @@ const escapeReplacements: Record<string, string> = {
17
17
  };
18
18
  const getEscapeReplacement = (ch: string) => escapeReplacements[ch]!;
19
19
 
20
+ // look into using Bun's Bun.escapeHTML()
21
+ // https://bun.sh/docs/api/utils#bun-escapehtml
20
22
  export function escape(html: string, encode?: boolean) {
21
23
  if (encode) {
22
24
  if (escapeTest.test(html)) {
package/styles.css ADDED
@@ -0,0 +1,716 @@
1
+ .github-styles.dark {
2
+ color-scheme: dark;
3
+ --color-fg-default: #e6edf3;
4
+ --color-fg-muted: #7d8590;
5
+ --color-fg-subtle: #6e7681;
6
+ --color-canvas-default: #0d1117;
7
+ --color-canvas-subtle: #161b22;
8
+ --color-border-default: #30363d;
9
+ --color-border-muted: #21262d;
10
+ --color-neutral-muted: rgba(110, 118, 129, 0.4);
11
+ --color-accent-fg: #2f81f7;
12
+ --color-accent-emphasis: #1f6feb;
13
+ --color-attention-subtle: rgba(187, 128, 9, 0.15);
14
+ --color-attention-muted: rgba(187, 128, 9, 0.4);
15
+ --color-danger-fg: #f85149;
16
+ --color-icon-directory: #7d8590;
17
+ --color-icon-file: #7d8590;
18
+ --color-btn-bg: #21262d;
19
+ --color-btn-border: rgba(240, 246, 252, 0.1);
20
+ --color-btn-hover-bg: #30363d;
21
+ /*! https://github.com/highlightjs/highlight.js/blob/main/src/styles/github-dark.css */
22
+ }
23
+ .github-styles.dark .hljs {
24
+ color: #c9d1d9;
25
+ }
26
+ .github-styles.dark .hljs-doctag,
27
+ .github-styles.dark .hljs-keyword,
28
+ .github-styles.dark .hljs-meta .hljs-keyword,
29
+ .github-styles.dark .hljs-template-tag,
30
+ .github-styles.dark .hljs-template-variable,
31
+ .github-styles.dark .hljs-type,
32
+ .github-styles.dark .hljs-variable.language_ {
33
+ /* prettylights-syntax-keyword */
34
+ color: #ff7b72;
35
+ }
36
+ .github-styles.dark .hljs-title,
37
+ .github-styles.dark .hljs-title.class_,
38
+ .github-styles.dark .hljs-title.class_.inherited__,
39
+ .github-styles.dark .hljs-title.function_ {
40
+ /* prettylights-syntax-entity */
41
+ color: #d2a8ff;
42
+ }
43
+ .github-styles.dark .hljs-attr,
44
+ .github-styles.dark .hljs-attribute,
45
+ .github-styles.dark .hljs-literal,
46
+ .github-styles.dark .hljs-meta,
47
+ .github-styles.dark .hljs-number,
48
+ .github-styles.dark .hljs-operator,
49
+ .github-styles.dark .hljs-variable,
50
+ .github-styles.dark .hljs-selector-attr,
51
+ .github-styles.dark .hljs-selector-class,
52
+ .github-styles.dark .hljs-selector-id {
53
+ /* prettylights-syntax-constant */
54
+ color: #79c0ff;
55
+ }
56
+ .github-styles.dark .hljs-regexp,
57
+ .github-styles.dark .hljs-string,
58
+ .github-styles.dark .hljs-meta .hljs-string {
59
+ /* prettylights-syntax-string */
60
+ color: #a5d6ff;
61
+ }
62
+ .github-styles.dark .hljs-built_in,
63
+ .github-styles.dark .hljs-symbol {
64
+ /* prettylights-syntax-variable */
65
+ color: #ffa657;
66
+ }
67
+ .github-styles.dark .hljs-comment,
68
+ .github-styles.dark .hljs-code,
69
+ .github-styles.dark .hljs-formula {
70
+ /* prettylights-syntax-comment */
71
+ color: #8b949e;
72
+ }
73
+ .github-styles.dark .hljs-name,
74
+ .github-styles.dark .hljs-quote,
75
+ .github-styles.dark .hljs-selector-tag,
76
+ .github-styles.dark .hljs-selector-pseudo {
77
+ /* prettylights-syntax-entity-tag */
78
+ color: #7ee787;
79
+ }
80
+ .github-styles.dark .hljs-subst {
81
+ /* prettylights-syntax-storage-modifier-import */
82
+ color: #c9d1d9;
83
+ }
84
+ .github-styles.dark .hljs-section {
85
+ /* prettylights-syntax-markup-heading */
86
+ color: #1f6feb;
87
+ font-weight: bold;
88
+ }
89
+ .github-styles.dark .hljs-bullet {
90
+ /* prettylights-syntax-markup-list */
91
+ color: #f2cc60;
92
+ }
93
+ .github-styles.dark .hljs-emphasis {
94
+ /* prettylights-syntax-markup-italic */
95
+ color: #c9d1d9;
96
+ font-style: italic;
97
+ }
98
+ .github-styles.dark .hljs-strong {
99
+ /* prettylights-syntax-markup-bold */
100
+ color: #c9d1d9;
101
+ font-weight: bold;
102
+ }
103
+ .github-styles.dark .hljs-addition {
104
+ /* prettylights-syntax-markup-inserted */
105
+ color: #aff5b4;
106
+ background-color: #033a16;
107
+ }
108
+ .github-styles.dark .hljs-deletion {
109
+ /* prettylights-syntax-markup-deleted */
110
+ color: #ffdcd7;
111
+ background-color: #67060c;
112
+ }
113
+ .github-styles.dark .hljs-char.escape_,
114
+ .github-styles.dark .hljs-link,
115
+ .github-styles.dark .hljs-params,
116
+ .github-styles.dark .hljs-property,
117
+ .github-styles.dark .hljs-punctuation,
118
+ .github-styles.dark .hljs-tag {
119
+ /* purposely ignored */
120
+ }
121
+ .github-styles.light {
122
+ color-scheme: light;
123
+ --color-fg-default: #1f2328;
124
+ --color-fg-muted: #656d76;
125
+ --color-fg-subtle: #6e7781;
126
+ --color-canvas-default: #fff;
127
+ --color-canvas-subtle: #f6f8fa;
128
+ --color-border-default: #d0d7de;
129
+ --color-border-muted: rgba(216, 222, 228, 1);
130
+ --color-neutral-muted: rgba(175, 184, 193, 0.2);
131
+ --color-accent-fg: #0969da;
132
+ --color-accent-emphasis: #0969da;
133
+ --color-attention-subtle: #fff8c5;
134
+ --color-attention-muted: rgba(212, 167, 44, 0.4);
135
+ --color-danger-fg: #d1242f;
136
+ --color-icon-directory: #54aeff;
137
+ --color-icon-file: #656d76;
138
+ --color-btn-bg: #f6f8fa;
139
+ --color-btn-border: rgba(31, 35, 40, 0.15);
140
+ --color-btn-hover-bg: #f3f4f6;
141
+ /*! https://github.com/highlightjs/highlight.js/blob/main/src/styles/github.css */
142
+ }
143
+ .github-styles.light .hljs {
144
+ color: #24292e;
145
+ }
146
+ .github-styles.light .hljs-doctag,
147
+ .github-styles.light .hljs-keyword,
148
+ .github-styles.light .hljs-meta .hljs-keyword,
149
+ .github-styles.light .hljs-template-tag,
150
+ .github-styles.light .hljs-template-variable,
151
+ .github-styles.light .hljs-type,
152
+ .github-styles.light .hljs-variable.language_ {
153
+ /* prettylights-syntax-keyword */
154
+ color: #d73a49;
155
+ }
156
+ .github-styles.light .hljs-title,
157
+ .github-styles.light .hljs-title.class_,
158
+ .github-styles.light .hljs-title.class_.inherited__,
159
+ .github-styles.light .hljs-title.function_ {
160
+ /* prettylights-syntax-entity */
161
+ color: #6f42c1;
162
+ }
163
+ .github-styles.light .hljs-attr,
164
+ .github-styles.light .hljs-attribute,
165
+ .github-styles.light .hljs-literal,
166
+ .github-styles.light .hljs-meta,
167
+ .github-styles.light .hljs-number,
168
+ .github-styles.light .hljs-operator,
169
+ .github-styles.light .hljs-variable,
170
+ .github-styles.light .hljs-selector-attr,
171
+ .github-styles.light .hljs-selector-class,
172
+ .github-styles.light .hljs-selector-id {
173
+ /* prettylights-syntax-constant */
174
+ color: #005cc5;
175
+ }
176
+ .github-styles.light .hljs-regexp,
177
+ .github-styles.light .hljs-string,
178
+ .github-styles.light .hljs-meta .hljs-string {
179
+ /* prettylights-syntax-string */
180
+ color: #032f62;
181
+ }
182
+ .github-styles.light .hljs-built_in,
183
+ .github-styles.light .hljs-symbol {
184
+ /* prettylights-syntax-variable */
185
+ color: #e36209;
186
+ }
187
+ .github-styles.light .hljs-comment,
188
+ .github-styles.light .hljs-code,
189
+ .github-styles.light .hljs-formula {
190
+ /* prettylights-syntax-comment */
191
+ color: #6a737d;
192
+ }
193
+ .github-styles.light .hljs-name,
194
+ .github-styles.light .hljs-quote,
195
+ .github-styles.light .hljs-selector-tag,
196
+ .github-styles.light .hljs-selector-pseudo {
197
+ /* prettylights-syntax-entity-tag */
198
+ color: #22863a;
199
+ }
200
+ .github-styles.light .hljs-subst {
201
+ /* prettylights-syntax-storage-modifier-import */
202
+ color: #24292e;
203
+ }
204
+ .github-styles.light .hljs-section {
205
+ /* prettylights-syntax-markup-heading */
206
+ color: #005cc5;
207
+ font-weight: bold;
208
+ }
209
+ .github-styles.light .hljs-bullet {
210
+ /* prettylights-syntax-markup-list */
211
+ color: #735c0f;
212
+ }
213
+ .github-styles.light .hljs-emphasis {
214
+ /* prettylights-syntax-markup-italic */
215
+ color: #24292e;
216
+ font-style: italic;
217
+ }
218
+ .github-styles.light .hljs-strong {
219
+ /* prettylights-syntax-markup-bold */
220
+ color: #24292e;
221
+ font-weight: bold;
222
+ }
223
+ .github-styles.light .hljs-addition {
224
+ /* prettylights-syntax-markup-inserted */
225
+ color: #22863a;
226
+ background-color: #f0fff4;
227
+ }
228
+ .github-styles.light .hljs-deletion {
229
+ /* prettylights-syntax-markup-deleted */
230
+ color: #b31d28;
231
+ background-color: #ffeef0;
232
+ }
233
+ .github-styles.light .hljs-char.escape_,
234
+ .github-styles.light .hljs-link,
235
+ .github-styles.light .hljs-params,
236
+ .github-styles.light .hljs-property,
237
+ .github-styles.light .hljs-punctuation,
238
+ .github-styles.light .hljs-tag {
239
+ /* purposely ignored */
240
+ }
241
+ .github-styles {
242
+ -ms-text-size-adjust: 100%;
243
+ -webkit-text-size-adjust: 100%;
244
+ margin: 0;
245
+ color: var(--fgColor-default, var(--color-fg-default));
246
+ background-color: var(--bgColor-default, var(--color-canvas-default));
247
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial,
248
+ sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
249
+ font-size: 16px;
250
+ line-height: 1.5;
251
+ word-wrap: break-word;
252
+ }
253
+ .github-styles details,
254
+ .github-styles figcaption,
255
+ .github-styles figure {
256
+ display: block;
257
+ }
258
+ .github-styles summary {
259
+ display: list-item;
260
+ }
261
+ .github-styles [hidden] {
262
+ display: none !important;
263
+ }
264
+ .github-styles a {
265
+ background-color: transparent;
266
+ color: var(--fgColor-accent, var(--color-accent-fg));
267
+ text-decoration: none;
268
+ }
269
+ .github-styles abbr[title] {
270
+ border-bottom: none;
271
+ text-decoration: underline dotted;
272
+ }
273
+ .github-styles b,
274
+ .github-styles strong {
275
+ font-weight: var(--base-text-weight-semibold, 600);
276
+ }
277
+ .github-styles dfn {
278
+ font-style: italic;
279
+ }
280
+ .github-styles h1 {
281
+ margin: 0.67em 0;
282
+ font-weight: var(--base-text-weight-semibold, 600);
283
+ padding-bottom: 0.3em;
284
+ font-size: 2em;
285
+ border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));
286
+ }
287
+ .github-styles mark {
288
+ background-color: var(--bgColor-attention-muted, var(--color-attention-subtle));
289
+ color: var(--fgColor-default, var(--color-fg-default));
290
+ }
291
+ .github-styles small {
292
+ font-size: 90%;
293
+ }
294
+ .github-styles sub,
295
+ .github-styles sup {
296
+ font-size: 75%;
297
+ line-height: 0;
298
+ position: relative;
299
+ vertical-align: baseline;
300
+ }
301
+ .github-styles sub {
302
+ bottom: -0.25em;
303
+ }
304
+ .github-styles sup {
305
+ top: -0.5em;
306
+ }
307
+ .github-styles img {
308
+ border-style: none;
309
+ max-width: 100%;
310
+ box-sizing: content-box;
311
+ background-color: var(--bgColor-default, var(--color-canvas-default));
312
+ }
313
+ .github-styles code,
314
+ .github-styles kbd,
315
+ .github-styles pre,
316
+ .github-styles samp {
317
+ font-family: monospace;
318
+ font-size: 1em;
319
+ }
320
+ .github-styles figure {
321
+ margin: 1em 40px;
322
+ }
323
+ .github-styles hr {
324
+ box-sizing: content-box;
325
+ overflow: hidden;
326
+ background: transparent;
327
+ border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));
328
+ height: 0.25em;
329
+ padding: 0;
330
+ margin: 24px 0;
331
+ background-color: var(--borderColor-default, var(--color-border-default));
332
+ border: 0;
333
+ }
334
+ .github-styles input {
335
+ font: inherit;
336
+ margin: 0;
337
+ overflow: visible;
338
+ font-family: inherit;
339
+ font-size: inherit;
340
+ line-height: inherit;
341
+ }
342
+ .github-styles [type="button"],
343
+ .github-styles [type="reset"],
344
+ .github-styles [type="submit"] {
345
+ -webkit-appearance: button;
346
+ appearance: button;
347
+ }
348
+ .github-styles [type="checkbox"],
349
+ .github-styles [type="radio"] {
350
+ box-sizing: border-box;
351
+ padding: 0;
352
+ }
353
+ .github-styles [type="number"]::-webkit-inner-spin-button,
354
+ .github-styles [type="number"]::-webkit-outer-spin-button {
355
+ height: auto;
356
+ }
357
+ .github-styles [type="search"]::-webkit-search-cancel-button,
358
+ .github-styles [type="search"]::-webkit-search-decoration {
359
+ -webkit-appearance: none;
360
+ }
361
+ .github-styles ::-webkit-input-placeholder {
362
+ color: inherit;
363
+ opacity: 0.54;
364
+ }
365
+ .github-styles ::-webkit-file-upload-button {
366
+ -webkit-appearance: button;
367
+ font: inherit;
368
+ }
369
+ .github-styles a:hover {
370
+ text-decoration: underline;
371
+ }
372
+ .github-styles ::placeholder {
373
+ color: var(--fgColor-muted, var(--color-fg-subtle));
374
+ opacity: 1;
375
+ }
376
+ .github-styles hr::before {
377
+ display: table;
378
+ content: "";
379
+ }
380
+ .github-styles hr::after {
381
+ display: table;
382
+ clear: both;
383
+ content: "";
384
+ }
385
+ .github-styles table {
386
+ border-spacing: 0;
387
+ border-collapse: collapse;
388
+ display: block;
389
+ width: max-content;
390
+ max-width: 100%;
391
+ overflow: auto;
392
+ }
393
+ .github-styles td,
394
+ .github-styles th {
395
+ padding: 0;
396
+ }
397
+ .github-styles details summary {
398
+ cursor: pointer;
399
+ }
400
+ .github-styles kbd {
401
+ display: inline-block;
402
+ padding: 3px 5px;
403
+ font:
404
+ 11px ui-monospace,
405
+ SFMono-Regular,
406
+ SF Mono,
407
+ Menlo,
408
+ Consolas,
409
+ Liberation Mono,
410
+ monospace;
411
+ line-height: 10px;
412
+ color: var(--fgColor-default, var(--color-fg-default));
413
+ vertical-align: middle;
414
+ background-color: var(--bgColor-muted, var(--color-canvas-subtle));
415
+ border: solid 1px var(--borderColor-neutral-muted, var(--color-neutral-muted));
416
+ border-bottom-color: var(--borderColor-neutral-muted, var(--color-neutral-muted));
417
+ border-radius: 6px;
418
+ box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted, var(--color-neutral-muted));
419
+ }
420
+ .github-styles h1,
421
+ .github-styles h2,
422
+ .github-styles h3,
423
+ .github-styles h4,
424
+ .github-styles h5,
425
+ .github-styles h6 {
426
+ margin-top: 24px;
427
+ margin-bottom: 16px;
428
+ font-weight: var(--base-text-weight-semibold, 600);
429
+ line-height: 1.25;
430
+ }
431
+ .github-styles h2 {
432
+ font-weight: var(--base-text-weight-semibold, 600);
433
+ padding-bottom: 0.3em;
434
+ font-size: 1.5em;
435
+ border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));
436
+ }
437
+ .github-styles h3 {
438
+ font-weight: var(--base-text-weight-semibold, 600);
439
+ font-size: 1.25em;
440
+ }
441
+ .github-styles h4 {
442
+ font-weight: var(--base-text-weight-semibold, 600);
443
+ font-size: 1em;
444
+ }
445
+ .github-styles h5 {
446
+ font-weight: var(--base-text-weight-semibold, 600);
447
+ font-size: 0.875em;
448
+ }
449
+ .github-styles h6 {
450
+ font-weight: var(--base-text-weight-semibold, 600);
451
+ font-size: 0.85em;
452
+ color: var(--fgColor-muted, var(--color-fg-muted));
453
+ }
454
+ .github-styles p {
455
+ margin-top: 0;
456
+ margin-bottom: 10px;
457
+ }
458
+ .github-styles blockquote {
459
+ margin: 0;
460
+ padding: 0 1em;
461
+ color: var(--fgColor-muted, var(--color-fg-muted));
462
+ border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
463
+ }
464
+ #markdown-element-id > ul,
465
+ #markdown-element-id > ol {
466
+ padding-left: 1em;
467
+ }
468
+ .github-styles ul,
469
+ .github-styles ol {
470
+ margin-top: 0;
471
+ margin-bottom: 0;
472
+ padding-left: 2em;
473
+ }
474
+ .github-styles ol ol,
475
+ .github-styles ul ol {
476
+ list-style-type: lower-roman;
477
+ }
478
+ .github-styles ul ul ol,
479
+ .github-styles ul ol ol,
480
+ .github-styles ol ul ol,
481
+ .github-styles ol ol ol {
482
+ list-style-type: lower-alpha;
483
+ }
484
+ .github-styles dd {
485
+ margin-left: 0;
486
+ }
487
+ .github-styles tt,
488
+ .github-styles code,
489
+ .github-styles samp {
490
+ font-family:
491
+ ui-monospace,
492
+ SFMono-Regular,
493
+ SF Mono,
494
+ Menlo,
495
+ Consolas,
496
+ Liberation Mono,
497
+ monospace;
498
+ font-size: 12px;
499
+ }
500
+ .github-styles pre {
501
+ margin-top: 0;
502
+ margin-bottom: 0;
503
+ font-family:
504
+ ui-monospace,
505
+ SFMono-Regular,
506
+ SF Mono,
507
+ Menlo,
508
+ Consolas,
509
+ Liberation Mono,
510
+ monospace;
511
+ font-size: 12px;
512
+ word-wrap: normal;
513
+ }
514
+ .github-styles input::-webkit-outer-spin-button,
515
+ .github-styles input::-webkit-inner-spin-button {
516
+ margin: 0;
517
+ -webkit-appearance: none;
518
+ appearance: none;
519
+ }
520
+ .github-styles::before {
521
+ display: table;
522
+ content: "";
523
+ }
524
+ .github-styles::after {
525
+ display: table;
526
+ clear: both;
527
+ content: "";
528
+ }
529
+ .github-styles > *:first-child {
530
+ margin-top: 0 !important;
531
+ }
532
+ .github-styles > *:last-child {
533
+ margin-bottom: 0 !important;
534
+ }
535
+ .github-styles a:not([href]) {
536
+ color: inherit;
537
+ text-decoration: none;
538
+ }
539
+ .github-styles p,
540
+ .github-styles blockquote,
541
+ .github-styles ul,
542
+ .github-styles ol,
543
+ .github-styles dl,
544
+ .github-styles table,
545
+ .github-styles pre,
546
+ .github-styles details {
547
+ margin-top: 0;
548
+ margin-bottom: 16px;
549
+ }
550
+ .github-styles blockquote > :first-child {
551
+ margin-top: 0;
552
+ }
553
+ .github-styles blockquote > :last-child {
554
+ margin-bottom: 0;
555
+ }
556
+ .github-styles h1 tt,
557
+ .github-styles h1 code,
558
+ .github-styles h2 tt,
559
+ .github-styles h2 code,
560
+ .github-styles h3 tt,
561
+ .github-styles h3 code,
562
+ .github-styles h4 tt,
563
+ .github-styles h4 code,
564
+ .github-styles h5 tt,
565
+ .github-styles h5 code,
566
+ .github-styles h6 tt,
567
+ .github-styles h6 code {
568
+ padding: 0 0.2em;
569
+ font-size: inherit;
570
+ }
571
+ .github-styles summary h1,
572
+ .github-styles summary h2,
573
+ .github-styles summary h3,
574
+ .github-styles summary h4,
575
+ .github-styles summary h5,
576
+ .github-styles summary h6 {
577
+ display: inline-block;
578
+ }
579
+ .github-styles summary h1,
580
+ .github-styles summary h2 {
581
+ padding-bottom: 0;
582
+ border-bottom: 0;
583
+ }
584
+ .github-styles ol[type="a s"] {
585
+ list-style-type: lower-alpha;
586
+ }
587
+ .github-styles ol[type="A s"] {
588
+ list-style-type: upper-alpha;
589
+ }
590
+ .github-styles ol[type="i s"] {
591
+ list-style-type: lower-roman;
592
+ }
593
+ .github-styles ol[type="I s"] {
594
+ list-style-type: upper-roman;
595
+ }
596
+ .github-styles ol[type="1"] {
597
+ list-style-type: decimal;
598
+ }
599
+ .github-styles div > ol:not([type]) {
600
+ list-style-type: decimal;
601
+ }
602
+ .github-styles ul ul,
603
+ .github-styles ul ol,
604
+ .github-styles ol ol,
605
+ .github-styles ol ul {
606
+ margin-top: 0;
607
+ margin-bottom: 0;
608
+ }
609
+ .github-styles li > p {
610
+ margin-top: 16px;
611
+ }
612
+ /* include margin-top even for first li childs for easier scroll offset calculation */
613
+ /* .github-styles li + li { */
614
+ .github-styles li {
615
+ margin-top: 0.25em;
616
+ }
617
+ .github-styles dl {
618
+ padding: 0;
619
+ }
620
+ .github-styles dl dt {
621
+ padding: 0;
622
+ margin-top: 16px;
623
+ font-size: 1em;
624
+ font-style: italic;
625
+ font-weight: var(--base-text-weight-semibold, 600);
626
+ }
627
+ .github-styles dl dd {
628
+ padding: 0 16px;
629
+ margin-bottom: 16px;
630
+ }
631
+ .github-styles table th {
632
+ font-weight: var(--base-text-weight-semibold, 600);
633
+ }
634
+ .github-styles table th,
635
+ .github-styles table td {
636
+ padding: 6px 13px;
637
+ border: 1px solid var(--borderColor-default, var(--color-border-default));
638
+ }
639
+ .github-styles table td > :last-child {
640
+ margin-bottom: 0;
641
+ }
642
+ .github-styles table tr {
643
+ background-color: var(--bgColor-default, var(--color-canvas-default));
644
+ border-top: 1px solid var(--borderColor-muted, var(--color-border-muted));
645
+ }
646
+ .github-styles table tr:nth-child(2n) {
647
+ background-color: var(--bgColor-muted, var(--color-canvas-subtle));
648
+ }
649
+ .github-styles table img {
650
+ background-color: transparent;
651
+ }
652
+ .github-styles img[align="right"] {
653
+ padding-left: 20px;
654
+ }
655
+ .github-styles img[align="left"] {
656
+ padding-right: 20px;
657
+ }
658
+ .github-styles code,
659
+ .github-styles tt {
660
+ padding: 0.2em 0.4em;
661
+ margin: 0;
662
+ font-size: 85%;
663
+ white-space: break-spaces;
664
+ background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted));
665
+ border-radius: 6px;
666
+ }
667
+ .github-styles code br,
668
+ .github-styles tt br {
669
+ display: none;
670
+ }
671
+ .github-styles del code {
672
+ text-decoration: inherit;
673
+ }
674
+ .github-styles samp {
675
+ font-size: 85%;
676
+ }
677
+ .github-styles pre code {
678
+ font-size: 100%;
679
+ }
680
+ .github-styles pre > code {
681
+ padding: 0;
682
+ margin: 0;
683
+ word-break: normal;
684
+ white-space: pre;
685
+ background: transparent;
686
+ border: 0;
687
+ }
688
+ .github-styles .highlight {
689
+ margin-bottom: 16px;
690
+ }
691
+ .github-styles .highlight pre {
692
+ margin-bottom: 0;
693
+ word-break: normal;
694
+ }
695
+ .github-styles .highlight pre,
696
+ .github-styles pre {
697
+ padding: 16px;
698
+ overflow: auto;
699
+ font-size: 85%;
700
+ line-height: 1.45;
701
+ color: var(--fgColor-default, var(--color-fg-default));
702
+ background-color: var(--bgColor-muted, var(--color-canvas-subtle));
703
+ border-radius: 6px;
704
+ }
705
+ .github-styles pre code,
706
+ .github-styles pre tt {
707
+ display: inline;
708
+ max-width: auto;
709
+ padding: 0;
710
+ margin: 0;
711
+ overflow: visible;
712
+ line-height: inherit;
713
+ word-wrap: normal;
714
+ background-color: transparent;
715
+ border: 0;
716
+ }
@@ -0,0 +1,4 @@
1
+ // TODO: I'm not so sure about this, come back to this
2
+ // once Bun has official css loader
3
+ const path: string;
4
+ export default path;