@caseparts-org/caseblocks 0.0.279 → 0.0.280
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/molecules/Markdown/Markdown.js +207 -206
- package/package.json +1 -1
|
@@ -78,13 +78,13 @@ ee.prototype.property = "";
|
|
|
78
78
|
ee.prototype.spaceSeparated = !1;
|
|
79
79
|
ee.prototype.space = void 0;
|
|
80
80
|
let Ri = 0;
|
|
81
|
-
const
|
|
81
|
+
const F = Ae(), W = Ae(), Ln = Ae(), S = Ae(), V = Ae(), De = Ae(), te = Ae();
|
|
82
82
|
function Ae() {
|
|
83
83
|
return 2 ** ++Ri;
|
|
84
84
|
}
|
|
85
85
|
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
86
|
__proto__: null,
|
|
87
|
-
boolean:
|
|
87
|
+
boolean: F,
|
|
88
88
|
booleanish: W,
|
|
89
89
|
commaOrSpaceSeparated: te,
|
|
90
90
|
commaSeparated: De,
|
|
@@ -213,38 +213,38 @@ const Oi = _e({
|
|
|
213
213
|
accessKey: V,
|
|
214
214
|
action: null,
|
|
215
215
|
allow: null,
|
|
216
|
-
allowFullScreen:
|
|
217
|
-
allowPaymentRequest:
|
|
218
|
-
allowUserMedia:
|
|
216
|
+
allowFullScreen: F,
|
|
217
|
+
allowPaymentRequest: F,
|
|
218
|
+
allowUserMedia: F,
|
|
219
219
|
alt: null,
|
|
220
220
|
as: null,
|
|
221
|
-
async:
|
|
221
|
+
async: F,
|
|
222
222
|
autoCapitalize: null,
|
|
223
223
|
autoComplete: V,
|
|
224
|
-
autoFocus:
|
|
225
|
-
autoPlay:
|
|
224
|
+
autoFocus: F,
|
|
225
|
+
autoPlay: F,
|
|
226
226
|
blocking: V,
|
|
227
227
|
capture: null,
|
|
228
228
|
charSet: null,
|
|
229
|
-
checked:
|
|
229
|
+
checked: F,
|
|
230
230
|
cite: null,
|
|
231
231
|
className: V,
|
|
232
232
|
cols: S,
|
|
233
233
|
colSpan: null,
|
|
234
234
|
content: null,
|
|
235
235
|
contentEditable: W,
|
|
236
|
-
controls:
|
|
236
|
+
controls: F,
|
|
237
237
|
controlsList: V,
|
|
238
238
|
coords: S | De,
|
|
239
239
|
crossOrigin: null,
|
|
240
240
|
data: null,
|
|
241
241
|
dateTime: null,
|
|
242
242
|
decoding: null,
|
|
243
|
-
default:
|
|
244
|
-
defer:
|
|
243
|
+
default: F,
|
|
244
|
+
defer: F,
|
|
245
245
|
dir: null,
|
|
246
246
|
dirName: null,
|
|
247
|
-
disabled:
|
|
247
|
+
disabled: F,
|
|
248
248
|
download: Ln,
|
|
249
249
|
draggable: W,
|
|
250
250
|
encType: null,
|
|
@@ -254,7 +254,7 @@ const Oi = _e({
|
|
|
254
254
|
formAction: null,
|
|
255
255
|
formEncType: null,
|
|
256
256
|
formMethod: null,
|
|
257
|
-
formNoValidate:
|
|
257
|
+
formNoValidate: F,
|
|
258
258
|
formTarget: null,
|
|
259
259
|
headers: V,
|
|
260
260
|
height: S,
|
|
@@ -267,15 +267,15 @@ const Oi = _e({
|
|
|
267
267
|
id: null,
|
|
268
268
|
imageSizes: null,
|
|
269
269
|
imageSrcSet: null,
|
|
270
|
-
inert:
|
|
270
|
+
inert: F,
|
|
271
271
|
inputMode: null,
|
|
272
272
|
integrity: null,
|
|
273
273
|
is: null,
|
|
274
|
-
isMap:
|
|
274
|
+
isMap: F,
|
|
275
275
|
itemId: null,
|
|
276
276
|
itemProp: V,
|
|
277
277
|
itemRef: V,
|
|
278
|
-
itemScope:
|
|
278
|
+
itemScope: F,
|
|
279
279
|
itemType: V,
|
|
280
280
|
kind: null,
|
|
281
281
|
label: null,
|
|
@@ -283,7 +283,7 @@ const Oi = _e({
|
|
|
283
283
|
language: null,
|
|
284
284
|
list: null,
|
|
285
285
|
loading: null,
|
|
286
|
-
loop:
|
|
286
|
+
loop: F,
|
|
287
287
|
low: S,
|
|
288
288
|
manifest: null,
|
|
289
289
|
max: null,
|
|
@@ -292,12 +292,12 @@ const Oi = _e({
|
|
|
292
292
|
method: null,
|
|
293
293
|
min: null,
|
|
294
294
|
minLength: S,
|
|
295
|
-
multiple:
|
|
296
|
-
muted:
|
|
295
|
+
multiple: F,
|
|
296
|
+
muted: F,
|
|
297
297
|
name: null,
|
|
298
298
|
nonce: null,
|
|
299
|
-
noModule:
|
|
300
|
-
noValidate:
|
|
299
|
+
noModule: F,
|
|
300
|
+
noValidate: F,
|
|
301
301
|
onAbort: null,
|
|
302
302
|
onAfterPrint: null,
|
|
303
303
|
onAuxClick: null,
|
|
@@ -386,31 +386,31 @@ const Oi = _e({
|
|
|
386
386
|
onVolumeChange: null,
|
|
387
387
|
onWaiting: null,
|
|
388
388
|
onWheel: null,
|
|
389
|
-
open:
|
|
389
|
+
open: F,
|
|
390
390
|
optimum: S,
|
|
391
391
|
pattern: null,
|
|
392
392
|
ping: V,
|
|
393
393
|
placeholder: null,
|
|
394
|
-
playsInline:
|
|
394
|
+
playsInline: F,
|
|
395
395
|
popover: null,
|
|
396
396
|
popoverTarget: null,
|
|
397
397
|
popoverTargetAction: null,
|
|
398
398
|
poster: null,
|
|
399
399
|
preload: null,
|
|
400
|
-
readOnly:
|
|
400
|
+
readOnly: F,
|
|
401
401
|
referrerPolicy: null,
|
|
402
402
|
rel: V,
|
|
403
|
-
required:
|
|
404
|
-
reversed:
|
|
403
|
+
required: F,
|
|
404
|
+
reversed: F,
|
|
405
405
|
rows: S,
|
|
406
406
|
rowSpan: S,
|
|
407
407
|
sandbox: V,
|
|
408
408
|
scope: null,
|
|
409
|
-
scoped:
|
|
410
|
-
seamless:
|
|
411
|
-
selected:
|
|
412
|
-
shadowRootClonable:
|
|
413
|
-
shadowRootDelegatesFocus:
|
|
409
|
+
scoped: F,
|
|
410
|
+
seamless: F,
|
|
411
|
+
selected: F,
|
|
412
|
+
shadowRootClonable: F,
|
|
413
|
+
shadowRootDelegatesFocus: F,
|
|
414
414
|
shadowRootMode: null,
|
|
415
415
|
shape: null,
|
|
416
416
|
size: S,
|
|
@@ -430,7 +430,7 @@ const Oi = _e({
|
|
|
430
430
|
title: null,
|
|
431
431
|
translate: null,
|
|
432
432
|
type: null,
|
|
433
|
-
typeMustMatch:
|
|
433
|
+
typeMustMatch: F,
|
|
434
434
|
useMap: null,
|
|
435
435
|
value: W,
|
|
436
436
|
width: S,
|
|
@@ -476,9 +476,9 @@ const Oi = _e({
|
|
|
476
476
|
// `<object>`
|
|
477
477
|
color: null,
|
|
478
478
|
// `<font>` and `<hr>`. Use CSS instead
|
|
479
|
-
compact:
|
|
479
|
+
compact: F,
|
|
480
480
|
// Lists. Use CSS to reduce space between items instead
|
|
481
|
-
declare:
|
|
481
|
+
declare: F,
|
|
482
482
|
// `<object>`
|
|
483
483
|
event: null,
|
|
484
484
|
// `<script>`
|
|
@@ -502,13 +502,13 @@ const Oi = _e({
|
|
|
502
502
|
// `<body>`
|
|
503
503
|
marginWidth: S,
|
|
504
504
|
// `<body>`
|
|
505
|
-
noResize:
|
|
505
|
+
noResize: F,
|
|
506
506
|
// `<frame>`
|
|
507
|
-
noHref:
|
|
507
|
+
noHref: F,
|
|
508
508
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
509
|
-
noShade:
|
|
509
|
+
noShade: F,
|
|
510
510
|
// `<hr>`. Use background-color and height instead of borders
|
|
511
|
-
noWrap:
|
|
511
|
+
noWrap: F,
|
|
512
512
|
// `<td>` and `<th>`
|
|
513
513
|
object: null,
|
|
514
514
|
// `<applet>`
|
|
@@ -548,8 +548,8 @@ const Oi = _e({
|
|
|
548
548
|
allowTransparency: null,
|
|
549
549
|
autoCorrect: null,
|
|
550
550
|
autoSave: null,
|
|
551
|
-
disablePictureInPicture:
|
|
552
|
-
disableRemotePlayback:
|
|
551
|
+
disablePictureInPicture: F,
|
|
552
|
+
disableRemotePlayback: F,
|
|
553
553
|
prefix: null,
|
|
554
554
|
property: null,
|
|
555
555
|
results: S,
|
|
@@ -784,7 +784,7 @@ const Oi = _e({
|
|
|
784
784
|
dur: null,
|
|
785
785
|
divisor: S,
|
|
786
786
|
dominantBaseline: null,
|
|
787
|
-
download:
|
|
787
|
+
download: F,
|
|
788
788
|
dx: null,
|
|
789
789
|
dy: null,
|
|
790
790
|
edgeMode: null,
|
|
@@ -1202,8 +1202,8 @@ function tl(e, t) {
|
|
|
1202
1202
|
function i(d) {
|
|
1203
1203
|
var y = d.match(Wi);
|
|
1204
1204
|
y && (n += y.length);
|
|
1205
|
-
var
|
|
1206
|
-
r = ~
|
|
1205
|
+
var E = d.lastIndexOf(Zi);
|
|
1206
|
+
r = ~E ? d.length - E : r + d.length;
|
|
1207
1207
|
}
|
|
1208
1208
|
function o() {
|
|
1209
1209
|
var d = { line: n, column: r };
|
|
@@ -1224,8 +1224,8 @@ function tl(e, t) {
|
|
|
1224
1224
|
function u(d) {
|
|
1225
1225
|
var y = d.exec(e);
|
|
1226
1226
|
if (y) {
|
|
1227
|
-
var
|
|
1228
|
-
return i(
|
|
1227
|
+
var E = y[0];
|
|
1228
|
+
return i(E), e = e.slice(E.length), y;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
function s() {
|
|
@@ -1244,10 +1244,10 @@ function tl(e, t) {
|
|
|
1244
1244
|
++y;
|
|
1245
1245
|
if (y += 2, Ee === e.charAt(y - 1))
|
|
1246
1246
|
return a("End of comment missing");
|
|
1247
|
-
var
|
|
1248
|
-
return r += 2, i(
|
|
1247
|
+
var E = e.slice(2, y - 2);
|
|
1248
|
+
return r += 2, i(E), e = e.slice(y), r += 2, d({
|
|
1249
1249
|
type: el,
|
|
1250
|
-
comment:
|
|
1250
|
+
comment: E
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
@@ -1255,10 +1255,10 @@ function tl(e, t) {
|
|
|
1255
1255
|
var d = o(), y = u(Xi);
|
|
1256
1256
|
if (y) {
|
|
1257
1257
|
if (c(), !u(Qi)) return a("property missing ':'");
|
|
1258
|
-
var
|
|
1258
|
+
var E = u(Gi), k = d({
|
|
1259
1259
|
type: nl,
|
|
1260
1260
|
property: xt(y[0].replace(dt, Ee)),
|
|
1261
|
-
value:
|
|
1261
|
+
value: E ? xt(E[0].replace(dt, Ee)) : Ee
|
|
1262
1262
|
});
|
|
1263
1263
|
return u(Ki), k;
|
|
1264
1264
|
}
|
|
@@ -1933,21 +1933,21 @@ function Kl(e) {
|
|
|
1933
1933
|
const t = this, n = [];
|
|
1934
1934
|
let r = 0, i, o, l;
|
|
1935
1935
|
return a;
|
|
1936
|
-
function a(
|
|
1936
|
+
function a(C) {
|
|
1937
1937
|
if (r < n.length) {
|
|
1938
1938
|
const L = n[r];
|
|
1939
|
-
return t.containerState = L[1], e.attempt(L[0].continuation, u, s)(
|
|
1939
|
+
return t.containerState = L[1], e.attempt(L[0].continuation, u, s)(C);
|
|
1940
1940
|
}
|
|
1941
|
-
return s(
|
|
1941
|
+
return s(C);
|
|
1942
1942
|
}
|
|
1943
|
-
function u(
|
|
1943
|
+
function u(C) {
|
|
1944
1944
|
if (r++, t.containerState._closeFlow) {
|
|
1945
1945
|
t.containerState._closeFlow = void 0, i && A();
|
|
1946
1946
|
const L = t.events.length;
|
|
1947
|
-
let
|
|
1948
|
-
for (;
|
|
1949
|
-
if (t.events[
|
|
1950
|
-
w = t.events[
|
|
1947
|
+
let D = L, w;
|
|
1948
|
+
for (; D--; )
|
|
1949
|
+
if (t.events[D][0] === "exit" && t.events[D][1].type === "chunkFlow") {
|
|
1950
|
+
w = t.events[D][1].end;
|
|
1951
1951
|
break;
|
|
1952
1952
|
}
|
|
1953
1953
|
k(r);
|
|
@@ -1956,53 +1956,53 @@ function Kl(e) {
|
|
|
1956
1956
|
t.events[M][1].end = {
|
|
1957
1957
|
...w
|
|
1958
1958
|
}, M++;
|
|
1959
|
-
return re(t.events,
|
|
1959
|
+
return re(t.events, D + 1, 0, t.events.slice(L)), t.events.length = M, s(C);
|
|
1960
1960
|
}
|
|
1961
|
-
return a(
|
|
1961
|
+
return a(C);
|
|
1962
1962
|
}
|
|
1963
|
-
function s(
|
|
1963
|
+
function s(C) {
|
|
1964
1964
|
if (r === n.length) {
|
|
1965
1965
|
if (!i)
|
|
1966
|
-
return p(
|
|
1966
|
+
return p(C);
|
|
1967
1967
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
1968
|
-
return d(
|
|
1968
|
+
return d(C);
|
|
1969
1969
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
1970
1970
|
}
|
|
1971
|
-
return t.containerState = {}, e.check(At, f, c)(
|
|
1971
|
+
return t.containerState = {}, e.check(At, f, c)(C);
|
|
1972
1972
|
}
|
|
1973
|
-
function f(
|
|
1974
|
-
return i && A(), k(r), p(
|
|
1973
|
+
function f(C) {
|
|
1974
|
+
return i && A(), k(r), p(C);
|
|
1975
1975
|
}
|
|
1976
|
-
function c(
|
|
1977
|
-
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(
|
|
1976
|
+
function c(C) {
|
|
1977
|
+
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(C);
|
|
1978
1978
|
}
|
|
1979
|
-
function p(
|
|
1980
|
-
return t.containerState = {}, e.attempt(At, h, d)(
|
|
1979
|
+
function p(C) {
|
|
1980
|
+
return t.containerState = {}, e.attempt(At, h, d)(C);
|
|
1981
1981
|
}
|
|
1982
|
-
function h(
|
|
1983
|
-
return r++, n.push([t.currentConstruct, t.containerState]), p(
|
|
1982
|
+
function h(C) {
|
|
1983
|
+
return r++, n.push([t.currentConstruct, t.containerState]), p(C);
|
|
1984
1984
|
}
|
|
1985
|
-
function d(
|
|
1986
|
-
if (
|
|
1987
|
-
i && A(), k(0), e.consume(
|
|
1985
|
+
function d(C) {
|
|
1986
|
+
if (C === null) {
|
|
1987
|
+
i && A(), k(0), e.consume(C);
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
1990
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
1991
1991
|
_tokenizer: i,
|
|
1992
1992
|
contentType: "flow",
|
|
1993
1993
|
previous: o
|
|
1994
|
-
}), y(
|
|
1994
|
+
}), y(C);
|
|
1995
1995
|
}
|
|
1996
|
-
function y(
|
|
1997
|
-
if (
|
|
1998
|
-
|
|
1996
|
+
function y(C) {
|
|
1997
|
+
if (C === null) {
|
|
1998
|
+
E(e.exit("chunkFlow"), !0), k(0), e.consume(C);
|
|
1999
1999
|
return;
|
|
2000
2000
|
}
|
|
2001
|
-
return v(
|
|
2001
|
+
return v(C) ? (e.consume(C), E(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(C), y);
|
|
2002
2002
|
}
|
|
2003
|
-
function C
|
|
2004
|
-
const
|
|
2005
|
-
if (L &&
|
|
2003
|
+
function E(C, L) {
|
|
2004
|
+
const D = t.sliceStream(C);
|
|
2005
|
+
if (L && D.push(null), C.previous = o, o && (o.next = C), o = C, i.defineSkip(C.start), i.write(D), t.parser.lazy[C.start.line]) {
|
|
2006
2006
|
let w = i.events.length;
|
|
2007
2007
|
for (; w--; )
|
|
2008
2008
|
if (
|
|
@@ -2029,13 +2029,13 @@ function Kl(e) {
|
|
|
2029
2029
|
re(t.events, $ + 1, 0, t.events.slice(M)), t.events.length = w;
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
|
-
function k(
|
|
2032
|
+
function k(C) {
|
|
2033
2033
|
let L = n.length;
|
|
2034
|
-
for (; L-- >
|
|
2035
|
-
const
|
|
2036
|
-
t.containerState =
|
|
2034
|
+
for (; L-- > C; ) {
|
|
2035
|
+
const D = n[L];
|
|
2036
|
+
t.containerState = D[1], D[0].exit.call(t, e);
|
|
2037
2037
|
}
|
|
2038
|
-
n.length =
|
|
2038
|
+
n.length = C;
|
|
2039
2039
|
}
|
|
2040
2040
|
function A() {
|
|
2041
2041
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
@@ -2274,7 +2274,7 @@ const Pt = {
|
|
|
2274
2274
|
function so(e, t, n) {
|
|
2275
2275
|
const r = this, i = {
|
|
2276
2276
|
partial: !0,
|
|
2277
|
-
tokenize:
|
|
2277
|
+
tokenize: D
|
|
2278
2278
|
};
|
|
2279
2279
|
let o = 0, l = 0, a;
|
|
2280
2280
|
return u;
|
|
@@ -2305,24 +2305,24 @@ function so(e, t, n) {
|
|
|
2305
2305
|
return w === null || v(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(w)) : w === 96 && w === a ? n(w) : (e.consume(w), d);
|
|
2306
2306
|
}
|
|
2307
2307
|
function y(w) {
|
|
2308
|
-
return e.attempt(i, L,
|
|
2308
|
+
return e.attempt(i, L, E)(w);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function E(w) {
|
|
2311
2311
|
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), k;
|
|
2312
2312
|
}
|
|
2313
2313
|
function k(w) {
|
|
2314
2314
|
return o > 0 && _(w) ? O(e, A, "linePrefix", o + 1)(w) : A(w);
|
|
2315
2315
|
}
|
|
2316
2316
|
function A(w) {
|
|
2317
|
-
return w === null || v(w) ? e.check(Pt, y, L)(w) : (e.enter("codeFlowValue"),
|
|
2317
|
+
return w === null || v(w) ? e.check(Pt, y, L)(w) : (e.enter("codeFlowValue"), C(w));
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return w === null || v(w) ? (e.exit("codeFlowValue"), A(w)) : (e.consume(w),
|
|
2319
|
+
function C(w) {
|
|
2320
|
+
return w === null || v(w) ? (e.exit("codeFlowValue"), A(w)) : (e.consume(w), C);
|
|
2321
2321
|
}
|
|
2322
2322
|
function L(w) {
|
|
2323
2323
|
return e.exit("codeFenced"), t(w);
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function D(w, M, $) {
|
|
2326
2326
|
let B = 0;
|
|
2327
2327
|
return x;
|
|
2328
2328
|
function x(N) {
|
|
@@ -2635,7 +2635,7 @@ function bo(e, t) {
|
|
|
2635
2635
|
l || (l = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (l._contentTypeTextTrailing = !0));
|
|
2636
2636
|
const a = l.events, u = [], s = {};
|
|
2637
2637
|
let f, c, p = -1, h = n, d = 0, y = 0;
|
|
2638
|
-
const
|
|
2638
|
+
const E = [y];
|
|
2639
2639
|
for (; h; ) {
|
|
2640
2640
|
for (; e.get(++i)[1] !== h; )
|
|
2641
2641
|
;
|
|
@@ -2643,9 +2643,9 @@ function bo(e, t) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
for (h = n; ++p < a.length; )
|
|
2645
2645
|
// Find a void token that includes a break.
|
|
2646
|
-
a[p][0] === "exit" && a[p - 1][0] === "enter" && a[p][1].type === a[p - 1][1].type && a[p][1].start.line !== a[p][1].end.line && (y = p + 1,
|
|
2647
|
-
for (l.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) :
|
|
2648
|
-
const k = a.slice(
|
|
2646
|
+
a[p][0] === "exit" && a[p - 1][0] === "enter" && a[p][1].type === a[p - 1][1].type && a[p][1].start.line !== a[p][1].end.line && (y = p + 1, E.push(y), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
2647
|
+
for (l.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : E.pop(), p = E.length; p--; ) {
|
|
2648
|
+
const k = a.slice(E[p], E[p + 1]), A = o.pop();
|
|
2649
2649
|
u.push([A, A + k.length - 1]), e.splice(A, 2, k);
|
|
2650
2650
|
}
|
|
2651
2651
|
for (u.reverse(), p = -1; ++p < u.length; )
|
|
@@ -2717,9 +2717,9 @@ function vr(e, t, n, r, i, o, l, a, u) {
|
|
|
2717
2717
|
return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
|
|
2718
2718
|
}
|
|
2719
2719
|
function y(k) {
|
|
2720
|
-
return !f && (k === null || k === 41 || U(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(k)) : f < s && k === 40 ? (e.consume(k), f++, y) : k === 41 ? (e.consume(k), f--, y) : k === null || k === 32 || k === 40 || rn(k) ? n(k) : (e.consume(k), k === 92 ?
|
|
2720
|
+
return !f && (k === null || k === 41 || U(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(k)) : f < s && k === 40 ? (e.consume(k), f++, y) : k === 41 ? (e.consume(k), f--, y) : k === null || k === 32 || k === 40 || rn(k) ? n(k) : (e.consume(k), k === 92 ? E : y);
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function E(k) {
|
|
2723
2723
|
return k === 40 || k === 41 || k === 92 ? (e.consume(k), y) : y(k);
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
@@ -2990,7 +2990,7 @@ function jo(e, t, n) {
|
|
|
2990
2990
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(g), c;
|
|
2991
2991
|
}
|
|
2992
2992
|
function c(g) {
|
|
2993
|
-
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), o = !0, y) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : J(g) ? (e.consume(g), l = String.fromCharCode(g),
|
|
2993
|
+
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), o = !0, y) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : J(g) ? (e.consume(g), l = String.fromCharCode(g), E) : n(g);
|
|
2994
2994
|
}
|
|
2995
2995
|
function p(g) {
|
|
2996
2996
|
return g === 45 ? (e.consume(g), i = 2, h) : g === 91 ? (e.consume(g), i = 5, a = 0, d) : J(g) ? (e.consume(g), i = 4, r.interrupt ? t : m) : n(g);
|
|
@@ -3003,14 +3003,14 @@ function jo(e, t, n) {
|
|
|
3003
3003
|
return g === ae.charCodeAt(a++) ? (e.consume(g), a === ae.length ? r.interrupt ? t : P : d) : n(g);
|
|
3004
3004
|
}
|
|
3005
3005
|
function y(g) {
|
|
3006
|
-
return J(g) ? (e.consume(g), l = String.fromCharCode(g),
|
|
3006
|
+
return J(g) ? (e.consume(g), l = String.fromCharCode(g), E) : n(g);
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function E(g) {
|
|
3009
3009
|
if (g === null || g === 47 || g === 62 || U(g)) {
|
|
3010
3010
|
const ae = g === 47, we = l.toLowerCase();
|
|
3011
|
-
return !ae && !o && zt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) : Ro.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), k) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) :
|
|
3011
|
+
return !ae && !o && zt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) : Ro.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), k) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : C(g));
|
|
3012
3012
|
}
|
|
3013
|
-
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g),
|
|
3013
|
+
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
|
|
3014
3014
|
}
|
|
3015
3015
|
function k(g) {
|
|
3016
3016
|
return g === 62 ? (e.consume(g), r.interrupt ? t : P) : n(g);
|
|
@@ -3018,14 +3018,14 @@ function jo(e, t, n) {
|
|
|
3018
3018
|
function A(g) {
|
|
3019
3019
|
return _(g) ? (e.consume(g), A) : x(g);
|
|
3020
3020
|
}
|
|
3021
|
-
function
|
|
3022
|
-
return g === 47 ? (e.consume(g), x) : g === 58 || g === 95 || J(g) ? (e.consume(g), L) : _(g) ? (e.consume(g),
|
|
3021
|
+
function C(g) {
|
|
3022
|
+
return g === 47 ? (e.consume(g), x) : g === 58 || g === 95 || J(g) ? (e.consume(g), L) : _(g) ? (e.consume(g), C) : x(g);
|
|
3023
3023
|
}
|
|
3024
3024
|
function L(g) {
|
|
3025
|
-
return g === 45 || g === 46 || g === 58 || g === 95 || G(g) ? (e.consume(g), L) :
|
|
3025
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || G(g) ? (e.consume(g), L) : D(g);
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3028
|
-
return g === 61 ? (e.consume(g), w) : _(g) ? (e.consume(g),
|
|
3027
|
+
function D(g) {
|
|
3028
|
+
return g === 61 ? (e.consume(g), w) : _(g) ? (e.consume(g), D) : C(g);
|
|
3029
3029
|
}
|
|
3030
3030
|
function w(g) {
|
|
3031
3031
|
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g, M) : _(g) ? (e.consume(g), w) : $(g);
|
|
@@ -3034,10 +3034,10 @@ function jo(e, t, n) {
|
|
|
3034
3034
|
return g === u ? (e.consume(g), u = null, B) : g === null || v(g) ? n(g) : (e.consume(g), M);
|
|
3035
3035
|
}
|
|
3036
3036
|
function $(g) {
|
|
3037
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || U(g) ?
|
|
3037
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || U(g) ? D(g) : (e.consume(g), $);
|
|
3038
3038
|
}
|
|
3039
3039
|
function B(g) {
|
|
3040
|
-
return g === 47 || g === 62 || _(g) ?
|
|
3040
|
+
return g === 47 || g === 62 || _(g) ? C(g) : n(g);
|
|
3041
3041
|
}
|
|
3042
3042
|
function x(g) {
|
|
3043
3043
|
return g === 62 ? (e.consume(g), T) : n(g);
|
|
@@ -3111,7 +3111,7 @@ function $o(e, t, n) {
|
|
|
3111
3111
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), u;
|
|
3112
3112
|
}
|
|
3113
3113
|
function u(m) {
|
|
3114
|
-
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m),
|
|
3114
|
+
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m), D) : m === 63 ? (e.consume(m), C) : J(m) ? (e.consume(m), $) : n(m);
|
|
3115
3115
|
}
|
|
3116
3116
|
function s(m) {
|
|
3117
3117
|
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, d) : J(m) ? (e.consume(m), A) : n(m);
|
|
@@ -3133,9 +3133,9 @@ function $o(e, t, n) {
|
|
|
3133
3133
|
return m === oe.charCodeAt(o++) ? (e.consume(m), o === oe.length ? y : d) : n(m);
|
|
3134
3134
|
}
|
|
3135
3135
|
function y(m) {
|
|
3136
|
-
return m === null ? n(m) : m === 93 ? (e.consume(m),
|
|
3136
|
+
return m === null ? n(m) : m === 93 ? (e.consume(m), E) : v(m) ? (l = y, Y(m)) : (e.consume(m), y);
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function E(m) {
|
|
3139
3139
|
return m === 93 ? (e.consume(m), k) : y(m);
|
|
3140
3140
|
}
|
|
3141
3141
|
function k(m) {
|
|
@@ -3144,13 +3144,13 @@ function $o(e, t, n) {
|
|
|
3144
3144
|
function A(m) {
|
|
3145
3145
|
return m === null || m === 62 ? Q(m) : v(m) ? (l = A, Y(m)) : (e.consume(m), A);
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m), L) : v(m) ? (l =
|
|
3147
|
+
function C(m) {
|
|
3148
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), L) : v(m) ? (l = C, Y(m)) : (e.consume(m), C);
|
|
3149
3149
|
}
|
|
3150
3150
|
function L(m) {
|
|
3151
|
-
return m === 62 ? Q(m) :
|
|
3151
|
+
return m === 62 ? Q(m) : C(m);
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function D(m) {
|
|
3154
3154
|
return J(m) ? (e.consume(m), w) : n(m);
|
|
3155
3155
|
}
|
|
3156
3156
|
function w(m) {
|
|
@@ -3727,10 +3727,10 @@ function La(e, t, n) {
|
|
|
3727
3727
|
const i = {}, o = [];
|
|
3728
3728
|
let l = [], a = [];
|
|
3729
3729
|
const u = {
|
|
3730
|
-
attempt: M(
|
|
3730
|
+
attempt: M(D),
|
|
3731
3731
|
check: M(w),
|
|
3732
3732
|
consume: A,
|
|
3733
|
-
enter:
|
|
3733
|
+
enter: C,
|
|
3734
3734
|
exit: L,
|
|
3735
3735
|
interrupt: M(w, {
|
|
3736
3736
|
interrupt: !0
|
|
@@ -3750,7 +3750,7 @@ function La(e, t, n) {
|
|
|
3750
3750
|
let f = t.tokenize.call(s, u);
|
|
3751
3751
|
return t.resolveAll && o.push(t), s;
|
|
3752
3752
|
function c(T) {
|
|
3753
|
-
return l = ie(l, T),
|
|
3753
|
+
return l = ie(l, T), E(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
|
|
3754
3754
|
}
|
|
3755
3755
|
function p(T, P) {
|
|
3756
3756
|
return Fa(h(T), P);
|
|
@@ -3777,7 +3777,7 @@ function La(e, t, n) {
|
|
|
3777
3777
|
function y(T) {
|
|
3778
3778
|
i[T.line] = T.column, x();
|
|
3779
3779
|
}
|
|
3780
|
-
function
|
|
3780
|
+
function E() {
|
|
3781
3781
|
let T;
|
|
3782
3782
|
for (; r._index < l.length; ) {
|
|
3783
3783
|
const P = l[r._index];
|
|
@@ -3797,7 +3797,7 @@ function La(e, t, n) {
|
|
|
3797
3797
|
/** @type {string} */
|
|
3798
3798
|
l[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = T;
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function C(T, P) {
|
|
3801
3801
|
const j = P || {};
|
|
3802
3802
|
return j.type = T, j.start = d(), s.events.push(["enter", j, s]), a.push(j), j;
|
|
3803
3803
|
}
|
|
@@ -3805,7 +3805,7 @@ function La(e, t, n) {
|
|
|
3805
3805
|
const P = a.pop();
|
|
3806
3806
|
return P.end = d(), s.events.push(["exit", P, s]), P;
|
|
3807
3807
|
}
|
|
3808
|
-
function
|
|
3808
|
+
function D(T, P) {
|
|
3809
3809
|
$(T, P.from);
|
|
3810
3810
|
}
|
|
3811
3811
|
function w(T, P) {
|
|
@@ -4062,7 +4062,7 @@ function Ha(e) {
|
|
|
4062
4062
|
},
|
|
4063
4063
|
exit: {
|
|
4064
4064
|
atxHeading: u(),
|
|
4065
|
-
atxHeadingSequence:
|
|
4065
|
+
atxHeadingSequence: D,
|
|
4066
4066
|
autolink: u(),
|
|
4067
4067
|
autolinkEmail: Te,
|
|
4068
4068
|
autolinkProtocol: ye,
|
|
@@ -4072,7 +4072,7 @@ function Ha(e) {
|
|
|
4072
4072
|
characterReferenceMarkerNumeric: we,
|
|
4073
4073
|
characterReferenceValue: X,
|
|
4074
4074
|
characterReference: Oe,
|
|
4075
|
-
codeFenced: u(
|
|
4075
|
+
codeFenced: u(E),
|
|
4076
4076
|
codeFencedFence: y,
|
|
4077
4077
|
codeFencedFenceInfo: h,
|
|
4078
4078
|
codeFencedFenceMeta: d,
|
|
@@ -4084,7 +4084,7 @@ function Ha(e) {
|
|
|
4084
4084
|
definition: u(),
|
|
4085
4085
|
definitionDestinationString: L,
|
|
4086
4086
|
definitionLabelString: A,
|
|
4087
|
-
definitionTitleString:
|
|
4087
|
+
definitionTitleString: C,
|
|
4088
4088
|
emphasis: u(),
|
|
4089
4089
|
hardBreakEscape: u(P),
|
|
4090
4090
|
hardBreakTrailing: u(P),
|
|
@@ -4272,7 +4272,7 @@ function Ha(e) {
|
|
|
4272
4272
|
function y() {
|
|
4273
4273
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function E() {
|
|
4276
4276
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4277
4277
|
I.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
4278
4278
|
}
|
|
@@ -4284,7 +4284,7 @@ function Ha(e) {
|
|
|
4284
4284
|
const I = this.resume(), z = this.stack[this.stack.length - 1];
|
|
4285
4285
|
z.label = I, z.identifier = se(this.sliceSerialize(b)).toLowerCase();
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4287
|
+
function C() {
|
|
4288
4288
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4289
4289
|
I.title = b;
|
|
4290
4290
|
}
|
|
@@ -4292,7 +4292,7 @@ function Ha(e) {
|
|
|
4292
4292
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4293
4293
|
I.url = b;
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function D(b) {
|
|
4296
4296
|
const I = this.stack[this.stack.length - 1];
|
|
4297
4297
|
if (!I.depth) {
|
|
4298
4298
|
const z = this.sliceSerialize(b).length;
|
|
@@ -5146,10 +5146,10 @@ function Su(e) {
|
|
|
5146
5146
|
children: Array.isArray(A) ? A : [A]
|
|
5147
5147
|
});
|
|
5148
5148
|
}
|
|
5149
|
-
const
|
|
5150
|
-
if (
|
|
5151
|
-
const A =
|
|
5152
|
-
A && A.type === "text" ? A.value += " " :
|
|
5149
|
+
const E = f[f.length - 1];
|
|
5150
|
+
if (E && E.type === "element" && E.tagName === "p") {
|
|
5151
|
+
const A = E.children[E.children.length - 1];
|
|
5152
|
+
A && A.type === "text" ? A.value += " " : E.children.push({ type: "text", value: " " }), E.children.push(...d);
|
|
5153
5153
|
} else
|
|
5154
5154
|
f.push(...d);
|
|
5155
5155
|
const k = {
|
|
@@ -5301,7 +5301,7 @@ function Ur(e, t, n, r) {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
return p;
|
|
5303
5303
|
function p() {
|
|
5304
|
-
let h = Hr, d, y,
|
|
5304
|
+
let h = Hr, d, y, E;
|
|
5305
5305
|
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = zu(n(u, f)), h[0] === Mn))
|
|
5306
5306
|
return h;
|
|
5307
5307
|
if ("children" in u && u.children) {
|
|
@@ -5310,9 +5310,9 @@ function Ur(e, t, n, r) {
|
|
|
5310
5310
|
u
|
|
5311
5311
|
);
|
|
5312
5312
|
if (k.children && h[0] !== vu)
|
|
5313
|
-
for (y = (r ? k.children.length : -1) + l,
|
|
5313
|
+
for (y = (r ? k.children.length : -1) + l, E = f.concat(k); y > -1 && y < k.children.length; ) {
|
|
5314
5314
|
const A = k.children[y];
|
|
5315
|
-
if (d = a(A, y,
|
|
5315
|
+
if (d = a(A, y, E)(), d[0] === Mn)
|
|
5316
5316
|
return d;
|
|
5317
5317
|
y = typeof d[1] == "number" ? d[1] : y + l;
|
|
5318
5318
|
}
|
|
@@ -5359,7 +5359,7 @@ function Du(e, t) {
|
|
|
5359
5359
|
return h(a, f, c);
|
|
5360
5360
|
if (a.options.passThrough && a.options.passThrough.includes(p)) {
|
|
5361
5361
|
if ("children" in f) {
|
|
5362
|
-
const { children: y, ...
|
|
5362
|
+
const { children: y, ...E } = f, k = on(E);
|
|
5363
5363
|
return k.children = a.all(f), k;
|
|
5364
5364
|
}
|
|
5365
5365
|
return on(f);
|
|
@@ -6762,25 +6762,25 @@ function qr(e, t, n) {
|
|
|
6762
6762
|
function u(s, f) {
|
|
6763
6763
|
const c = f[f.length - 1], p = o[l][0], h = o[l][1];
|
|
6764
6764
|
let d = 0;
|
|
6765
|
-
const
|
|
6765
|
+
const E = c.children.indexOf(s);
|
|
6766
6766
|
let k = !1, A = [];
|
|
6767
6767
|
p.lastIndex = 0;
|
|
6768
|
-
let
|
|
6769
|
-
for (;
|
|
6770
|
-
const L =
|
|
6771
|
-
index:
|
|
6772
|
-
input:
|
|
6768
|
+
let C = p.exec(s.value);
|
|
6769
|
+
for (; C; ) {
|
|
6770
|
+
const L = C.index, D = {
|
|
6771
|
+
index: C.index,
|
|
6772
|
+
input: C.input,
|
|
6773
6773
|
stack: [...f, s]
|
|
6774
6774
|
};
|
|
6775
|
-
let w = h(...
|
|
6775
|
+
let w = h(...C, D);
|
|
6776
6776
|
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? p.lastIndex = L + 1 : (d !== L && A.push({
|
|
6777
6777
|
type: "text",
|
|
6778
6778
|
value: s.value.slice(d, L)
|
|
6779
|
-
}), Array.isArray(w) ? A.push(...w) : w && A.push(w), d = L +
|
|
6779
|
+
}), Array.isArray(w) ? A.push(...w) : w && A.push(w), d = L + C[0].length, k = !0), !p.global)
|
|
6780
6780
|
break;
|
|
6781
|
-
|
|
6781
|
+
C = p.exec(s.value);
|
|
6782
6782
|
}
|
|
6783
|
-
return k ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(
|
|
6783
|
+
return k ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...A)) : A = [s], E + A.length;
|
|
6784
6784
|
}
|
|
6785
6785
|
}
|
|
6786
6786
|
function ps(e) {
|
|
@@ -7067,17 +7067,17 @@ function Ys(e, t) {
|
|
|
7067
7067
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Ws, o = [], l = [], a = [], u = [];
|
|
7068
7068
|
let s = 0, f = -1;
|
|
7069
7069
|
for (; ++f < e.length; ) {
|
|
7070
|
-
const y = [],
|
|
7070
|
+
const y = [], E = [];
|
|
7071
7071
|
let k = -1;
|
|
7072
7072
|
for (e[f].length > s && (s = e[f].length); ++k < e[f].length; ) {
|
|
7073
7073
|
const A = Xs(e[f][k]);
|
|
7074
7074
|
if (n.alignDelimiters !== !1) {
|
|
7075
|
-
const
|
|
7076
|
-
|
|
7075
|
+
const C = i(A);
|
|
7076
|
+
E[k] = C, (u[k] === void 0 || C > u[k]) && (u[k] = C);
|
|
7077
7077
|
}
|
|
7078
7078
|
y.push(A);
|
|
7079
7079
|
}
|
|
7080
|
-
l[f] = y, a[f] =
|
|
7080
|
+
l[f] = y, a[f] = E;
|
|
7081
7081
|
}
|
|
7082
7082
|
let c = -1;
|
|
7083
7083
|
if (typeof r == "object" && "length" in r)
|
|
@@ -7092,31 +7092,31 @@ function Ys(e, t) {
|
|
|
7092
7092
|
const p = [], h = [];
|
|
7093
7093
|
for (; ++c < s; ) {
|
|
7094
7094
|
const y = o[c];
|
|
7095
|
-
let
|
|
7096
|
-
y === 99 ? (
|
|
7095
|
+
let E = "", k = "";
|
|
7096
|
+
y === 99 ? (E = ":", k = ":") : y === 108 ? E = ":" : y === 114 && (k = ":");
|
|
7097
7097
|
let A = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
7098
7098
|
1,
|
|
7099
|
-
u[c] -
|
|
7099
|
+
u[c] - E.length - k.length
|
|
7100
7100
|
);
|
|
7101
|
-
const
|
|
7102
|
-
n.alignDelimiters !== !1 && (A =
|
|
7101
|
+
const C = E + "-".repeat(A) + k;
|
|
7102
|
+
n.alignDelimiters !== !1 && (A = E.length + A + k.length, A > u[c] && (u[c] = A), h[c] = A), p[c] = C;
|
|
7103
7103
|
}
|
|
7104
7104
|
l.splice(1, 0, p), a.splice(1, 0, h), f = -1;
|
|
7105
7105
|
const d = [];
|
|
7106
7106
|
for (; ++f < l.length; ) {
|
|
7107
|
-
const y = l[f],
|
|
7107
|
+
const y = l[f], E = a[f];
|
|
7108
7108
|
c = -1;
|
|
7109
7109
|
const k = [];
|
|
7110
7110
|
for (; ++c < s; ) {
|
|
7111
7111
|
const A = y[c] || "";
|
|
7112
|
-
let
|
|
7112
|
+
let C = "", L = "";
|
|
7113
7113
|
if (n.alignDelimiters !== !1) {
|
|
7114
|
-
const
|
|
7115
|
-
w === 114 ?
|
|
7114
|
+
const D = u[c] - (E[c] || 0), w = o[c];
|
|
7115
|
+
w === 114 ? C = " ".repeat(D) : w === 99 ? D % 2 ? (C = " ".repeat(D / 2 + 0.5), L = " ".repeat(D / 2 - 0.5)) : (C = " ".repeat(D / 2), L = C) : L = " ".repeat(D);
|
|
7116
7116
|
}
|
|
7117
7117
|
n.delimiterStart !== !1 && !c && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
7118
7118
|
// empty: there will be a closing space.
|
|
7119
|
-
!(n.alignDelimiters === !1 && A === "") && (n.delimiterStart !== !1 || c) && k.push(" "), n.alignDelimiters !== !1 && k.push(
|
|
7119
|
+
!(n.alignDelimiters === !1 && A === "") && (n.delimiterStart !== !1 || c) && k.push(" "), n.alignDelimiters !== !1 && k.push(C), k.push(A), n.alignDelimiters !== !1 && k.push(L), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || c !== s - 1) && k.push("|");
|
|
7120
7120
|
}
|
|
7121
7121
|
d.push(
|
|
7122
7122
|
n.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
|
|
@@ -7808,21 +7808,21 @@ function Fc(e) {
|
|
|
7808
7808
|
tableRow: a
|
|
7809
7809
|
}
|
|
7810
7810
|
};
|
|
7811
|
-
function l(h, d, y,
|
|
7812
|
-
return s(f(h, y,
|
|
7811
|
+
function l(h, d, y, E) {
|
|
7812
|
+
return s(f(h, y, E), h.align);
|
|
7813
7813
|
}
|
|
7814
|
-
function a(h, d, y,
|
|
7815
|
-
const k = c(h, y,
|
|
7814
|
+
function a(h, d, y, E) {
|
|
7815
|
+
const k = c(h, y, E), A = s([k]);
|
|
7816
7816
|
return A.slice(0, A.indexOf(`
|
|
7817
7817
|
`));
|
|
7818
7818
|
}
|
|
7819
|
-
function u(h, d, y,
|
|
7820
|
-
const k = y.enter("tableCell"), A = y.enter("phrasing"),
|
|
7821
|
-
...
|
|
7819
|
+
function u(h, d, y, E) {
|
|
7820
|
+
const k = y.enter("tableCell"), A = y.enter("phrasing"), C = y.containerPhrasing(h, {
|
|
7821
|
+
...E,
|
|
7822
7822
|
before: o,
|
|
7823
7823
|
after: o
|
|
7824
7824
|
});
|
|
7825
|
-
return A(), k(),
|
|
7825
|
+
return A(), k(), C;
|
|
7826
7826
|
}
|
|
7827
7827
|
function s(h, d) {
|
|
7828
7828
|
return Ys(h, {
|
|
@@ -7836,24 +7836,24 @@ function Fc(e) {
|
|
|
7836
7836
|
});
|
|
7837
7837
|
}
|
|
7838
7838
|
function f(h, d, y) {
|
|
7839
|
-
const
|
|
7839
|
+
const E = h.children;
|
|
7840
7840
|
let k = -1;
|
|
7841
|
-
const A = [],
|
|
7842
|
-
for (; ++k <
|
|
7843
|
-
A[k] = c(
|
|
7844
|
-
return
|
|
7841
|
+
const A = [], C = d.enter("table");
|
|
7842
|
+
for (; ++k < E.length; )
|
|
7843
|
+
A[k] = c(E[k], d, y);
|
|
7844
|
+
return C(), A;
|
|
7845
7845
|
}
|
|
7846
7846
|
function c(h, d, y) {
|
|
7847
|
-
const
|
|
7847
|
+
const E = h.children;
|
|
7848
7848
|
let k = -1;
|
|
7849
|
-
const A = [],
|
|
7850
|
-
for (; ++k <
|
|
7851
|
-
A[k] = u(
|
|
7852
|
-
return
|
|
7849
|
+
const A = [], C = d.enter("tableRow");
|
|
7850
|
+
for (; ++k < E.length; )
|
|
7851
|
+
A[k] = u(E[k], h, d, y);
|
|
7852
|
+
return C(), A;
|
|
7853
7853
|
}
|
|
7854
7854
|
function p(h, d, y) {
|
|
7855
|
-
let
|
|
7856
|
-
return y.stack.includes("tableCell") && (
|
|
7855
|
+
let E = oi.inlineCode(h, d, y);
|
|
7856
|
+
return y.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
|
|
7857
7857
|
}
|
|
7858
7858
|
}
|
|
7859
7859
|
function _c() {
|
|
@@ -8358,8 +8358,8 @@ function af(e) {
|
|
|
8358
8358
|
if (d === 126)
|
|
8359
8359
|
return c > 1 ? u(d) : (l.consume(d), c++, h);
|
|
8360
8360
|
if (c < 2 && !n) return u(d);
|
|
8361
|
-
const
|
|
8362
|
-
return
|
|
8361
|
+
const E = l.exit("strikethroughSequenceTemporary"), k = Fe(d);
|
|
8362
|
+
return E._open = !k || k === 2 && !!y, E._close = !y || y === 2 && !!k, a(d);
|
|
8363
8363
|
}
|
|
8364
8364
|
}
|
|
8365
8365
|
}
|
|
@@ -8496,27 +8496,27 @@ function hf(e, t, n) {
|
|
|
8496
8496
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(x) : (e.enter("tableDelimiterRow"), l = !1, _(x) ? O(e, d, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : d(x));
|
|
8497
8497
|
}
|
|
8498
8498
|
function d(x) {
|
|
8499
|
-
return x === 45 || x === 58 ?
|
|
8499
|
+
return x === 45 || x === 58 ? E(x) : x === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), y) : D(x);
|
|
8500
8500
|
}
|
|
8501
8501
|
function y(x) {
|
|
8502
|
-
return _(x) ? O(e,
|
|
8502
|
+
return _(x) ? O(e, E, "whitespace")(x) : E(x);
|
|
8503
8503
|
}
|
|
8504
|
-
function
|
|
8505
|
-
return x === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), k) : x === 45 ? (o += 1, k(x)) : x === null || v(x) ? L(x) :
|
|
8504
|
+
function E(x) {
|
|
8505
|
+
return x === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), k) : x === 45 ? (o += 1, k(x)) : x === null || v(x) ? L(x) : D(x);
|
|
8506
8506
|
}
|
|
8507
8507
|
function k(x) {
|
|
8508
|
-
return x === 45 ? (e.enter("tableDelimiterFiller"), A(x)) :
|
|
8508
|
+
return x === 45 ? (e.enter("tableDelimiterFiller"), A(x)) : D(x);
|
|
8509
8509
|
}
|
|
8510
8510
|
function A(x) {
|
|
8511
|
-
return x === 45 ? (e.consume(x), A) : x === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"),
|
|
8511
|
+
return x === 45 ? (e.consume(x), A) : x === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), C) : (e.exit("tableDelimiterFiller"), C(x));
|
|
8512
8512
|
}
|
|
8513
|
-
function
|
|
8513
|
+
function C(x) {
|
|
8514
8514
|
return _(x) ? O(e, L, "whitespace")(x) : L(x);
|
|
8515
8515
|
}
|
|
8516
8516
|
function L(x) {
|
|
8517
|
-
return x === 124 ? d(x) : x === null || v(x) ? !l || i !== o ?
|
|
8517
|
+
return x === 124 ? d(x) : x === null || v(x) ? !l || i !== o ? D(x) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(x)) : D(x);
|
|
8518
8518
|
}
|
|
8519
|
-
function
|
|
8519
|
+
function D(x) {
|
|
8520
8520
|
return n(x);
|
|
8521
8521
|
}
|
|
8522
8522
|
function w(x) {
|
|
@@ -8707,26 +8707,27 @@ function Df({
|
|
|
8707
8707
|
);
|
|
8708
8708
|
if (!s) return null;
|
|
8709
8709
|
const c = r || i ? {
|
|
8710
|
-
a: ({ node: d, href: y, children:
|
|
8711
|
-
const A = [r, i].filter((
|
|
8712
|
-
let
|
|
8713
|
-
if (!
|
|
8714
|
-
if (!
|
|
8710
|
+
a: ({ node: d, href: y, children: E, ...k }) => {
|
|
8711
|
+
const A = [r, i].filter((D) => typeof D == "string").map((D) => new URL(D).origin), C = y != null && y.startsWith("www.") ? `https://${y}` : y;
|
|
8712
|
+
let L = !C || C.startsWith("/") || C.startsWith("#");
|
|
8713
|
+
if (!L) {
|
|
8714
|
+
if (!C) return /* @__PURE__ */ xe(vn, { children: E });
|
|
8715
8715
|
try {
|
|
8716
|
-
|
|
8716
|
+
L = A.includes(new URL(C).origin);
|
|
8717
8717
|
} catch {
|
|
8718
|
-
return /* @__PURE__ */ xe(vn, { children:
|
|
8718
|
+
return /* @__PURE__ */ xe(vn, { children: E });
|
|
8719
8719
|
}
|
|
8720
8720
|
}
|
|
8721
8721
|
return /* @__PURE__ */ xe(
|
|
8722
8722
|
"a",
|
|
8723
8723
|
{
|
|
8724
8724
|
...k,
|
|
8725
|
-
href:
|
|
8726
|
-
...!
|
|
8725
|
+
href: C,
|
|
8726
|
+
...!L && {
|
|
8727
8727
|
target: "_blank",
|
|
8728
8728
|
rel: "noopener noreferrer"
|
|
8729
|
-
}
|
|
8729
|
+
},
|
|
8730
|
+
children: E
|
|
8730
8731
|
}
|
|
8731
8732
|
);
|
|
8732
8733
|
}
|