@openclaw/matrix 2026.8.2 → 2026.8.34
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/{account-selection-DA-jfx22.js → .setup/account-selection-DZMazUgX.mjs} +1 -1
- package/dist/{accounts-DR1c4xF_.js → .setup/accounts-BJ6ECCac.mjs} +3 -3
- package/dist/{approval-handler.runtime-xcVrZw9o.js → .setup/approval-handler.runtime-CcbBADVh.mjs} +11 -7
- package/dist/{approval-ids-hmvhDNBj.js → .setup/approval-ids-CU_nMQy9.mjs} +1 -1
- package/dist/{approval-reaction-auth-DziFGHSk.js → .setup/approval-reaction-auth-CpxhvOOT.mjs} +2 -2
- package/dist/{approval-reactions-1fwEhoK9.js → .setup/approval-reactions-BlnA05wW.mjs} +3 -3
- package/dist/{channel-D6-ajB_u.js → .setup/channel-kJSxq14c.mjs} +22 -18
- package/dist/{channel.runtime-BMA0dG2k.js → .setup/channel.runtime-BFXlZFP1.mjs} +6 -6
- package/dist/{channel.setup-OIEzCzSs.js → .setup/channel.setup-2A6HBRbA.mjs} +4 -4
- package/dist/{cli-B6HF7Hmn.js → .setup/cli-CyuDGiIr.mjs} +15 -15
- package/dist/{cli-metadata-Mtzu5-AY.js → .setup/cli-metadata-B_y2Z5Np.mjs} +1 -1
- package/dist/{client-B0yMDho1.js → .setup/client-CpHMD-C2.mjs} +3 -3
- package/dist/{client-DFsRJEgB.js → .setup/client-DvcYcTSy.mjs} +13 -13
- package/dist/{client-bootstrap-DjXCKEtg.js → .setup/client-bootstrap-Cb1tHsT4.mjs} +3 -3
- package/dist/{client-support-DLj4vDeu.js → .setup/client-support-Bn9Bk0-H.mjs} +1 -1
- package/dist/{config-update-BnX26jCO.js → .setup/config-update-B_4qZ5bV.mjs} +3 -3
- package/dist/{credentials-DJj2xs3q.js → .setup/credentials-B2roKThT.mjs} +3 -3
- package/dist/{credentials-read-mexhw-Ur.js → .setup/credentials-read-DaemdXHy.mjs} +4 -4
- package/dist/{credentials-write.runtime-DQt-kgJq.js → .setup/credentials-write.runtime-D83HEGcL.mjs} +1 -1
- package/dist/{crypto-runtime-QvlgyCkj.js → .setup/crypto-runtime-Ch4WOG1y.mjs} +5 -5
- package/dist/{device-health-B4-YXtJR.js → .setup/device-health-CWOuIirq.mjs} +1 -1
- package/dist/{direct-room-RinHjtqX.js → .setup/direct-room-CKyU8upP.mjs} +1 -1
- package/dist/{directory-live-Drh343TW.js → .setup/directory-live-DggLE-28.mjs} +4 -4
- package/dist/{doctor-CJE8wO6y.js → .setup/doctor-BLCvdOFo.mjs} +1 -1
- package/dist/{draft-stream-DhGHVdO4.js → .setup/draft-stream-DfUFwKfN.mjs} +1 -1
- package/dist/{encryption-guidance-BNcZNQZI.js → .setup/encryption-guidance-CvN_NQUJ.mjs} +2 -2
- package/dist/{http-client-DOmFvKvB.js → .setup/http-client-Bv6a2OfI.mjs} +1 -1
- package/dist/{idb-persistence-D4NGNQxt.js → .setup/idb-persistence-BiscLSq4.mjs} +3 -3
- package/dist/{inbound-dedupe-Ch33GU06.js → .setup/inbound-dedupe-BOsuMiaj.mjs} +1 -1
- package/dist/{logger-B_71hN6W.js → .setup/logger-B3tfcB-m.mjs} +1 -1
- package/dist/{logging-DRjvUOIh.js → .setup/logging-CkohOZwO.mjs} +2 -2
- package/dist/{messages-DlMQaC02.js → .setup/messages-C3v-jkaN.mjs} +4 -4
- package/dist/{monitor-U2LcVtHt.js → .setup/monitor-Cm0-IZPg.mjs} +26 -26
- package/dist/.setup/probe.runtime-ni46ImsO.mjs +2 -0
- package/dist/{profile-vmjsmhh4.js → .setup/profile-ClrB3IgR.mjs} +1 -1
- package/dist/{profile-update-CsyKA9jI.js → .setup/profile-update-B9Q6Ox2O.mjs} +4 -4
- package/dist/{reaction-events-lwNc5I1X.js → .setup/reaction-events-DLCiEuIa.mjs} +6 -6
- package/dist/{resolve-targets-D3Eakgzs.js → .setup/resolve-targets-Bke5jHKS.mjs} +3 -3
- package/dist/{resolver.runtime-DJQxR35r.js → .setup/resolver.runtime-BtrbC025.mjs} +1 -1
- package/dist/{room-info-DIU67XLP.js → .setup/room-info-B0VNxsF8.mjs} +4 -4
- package/dist/.setup/runtime-setter-api-DGMubGUq.mjs +3 -0
- package/dist/{sdk-Jl2CgAbJ.js → .setup/sdk-DoObvds0.mjs} +18 -15
- package/dist/{secret-contract-CufozuyJ.js → .setup/secret-contract-JlB6VmI3.mjs} +1 -1
- package/dist/.setup/secret-contract-api-B-iJoQEv.mjs +3 -0
- package/dist/{send-DfS5ciUL.js → .setup/send-SmBzUhD-.mjs} +7 -7
- package/dist/{setup-bootstrap-CWoIWudw.js → .setup/setup-bootstrap-CUKhebeX.mjs} +3 -3
- package/dist/{setup-core-CZM496H-.js → .setup/setup-core-BnqoLunq.mjs} +7 -7
- package/dist/.setup/setup-plugin-api-Dg95tydH.mjs +3 -0
- package/dist/{setup-surface-DSZtOsWK.js → .setup/setup-surface-sWwADrZ8.mjs} +12 -12
- package/dist/{startup-verification-1Ney1mmI.js → .setup/startup-verification-E46yu4fh.mjs} +2 -2
- package/dist/{storage-BVf4uucD.js → .setup/storage-B-nf2ReN.mjs} +4 -4
- package/dist/{subagent-hooks-DeICLbU5.js → .setup/subagent-hooks-jFgft_Mr.mjs} +1 -1
- package/dist/{sync-cache-state-d-A_OhbU.js → .setup/sync-cache-state-6Hjn1K-v.mjs} +2 -2
- package/dist/{thread-binding-api-CzkeLZCU.js → .setup/thread-binding-api-DRMC62cs.mjs} +1 -1
- package/dist/{thread-bindings-2HN2AyLu.js → .setup/thread-bindings-_WJ8RYWJ.mjs} +4 -4
- package/dist/{tool-actions.runtime-CFZZPG5g.js → .setup/tool-actions.runtime-Ds5Zt5m1.mjs} +13 -13
- package/dist/{verification-CD7k5vE9.js → .setup/verification-DOT16noD.mjs} +4 -3
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +9 -9
- package/dist/helper-api.js +3 -3
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/runtime-api.js +6 -6
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +4 -3
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +525 -484
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +7 -7
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +129 -121
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.d.mts +42 -71
- package/node_modules/markdown-it/dist/markdown-it.mjs +129 -121
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -1
- package/node_modules/markdown-it/package.json +1 -2
- package/package.json +5 -5
- package/dist/probe.runtime-CNo-5_iz.js +0 -2
- /package/dist/{account-config-CRsKoMqJ.js → .setup/account-config-CRsKoMqJ.mjs} +0 -0
- /package/dist/{backup-health-Dm_YMVFT.js → .setup/backup-health-Dm_YMVFT.mjs} +0 -0
- /package/dist/{config-paths-CnREYb1Y.js → .setup/config-paths-CnREYb1Y.mjs} +0 -0
- /package/dist/{config-secret-input.runtime-CwsP3--c.js → .setup/config-secret-input.runtime-CwsP3--c.mjs} +0 -0
- /package/dist/{credentials-state-B3cuUFwZ.js → .setup/credentials-state-B3cuUFwZ.mjs} +0 -0
- /package/dist/{crypto-node.runtime-6Aj_ltHQ.js → .setup/crypto-node.runtime-6Aj_ltHQ.mjs} +0 -0
- /package/dist/{deps-mtxF2mHI.js → .setup/deps-mtxF2mHI.mjs} +0 -0
- /package/dist/{doctor-contract-HyWFZQVG.js → .setup/doctor-contract-HyWFZQVG.mjs} +0 -0
- /package/dist/{env-vars-dGqak9dN.js → .setup/env-vars-dGqak9dN.mjs} +0 -0
- /package/dist/{errors-DKVS3_DO.js → .setup/errors-DKVS3_DO.mjs} +0 -0
- /package/dist/{event-helpers-XRfAbOIh.js → .setup/event-helpers-XRfAbOIh.mjs} +0 -0
- /package/dist/{idb-persistence-lock-B3fZXyF_.js → .setup/idb-persistence-lock-B3fZXyF_.mjs} +0 -0
- /package/dist/{reaction-common-DkrQdBSZ.js → .setup/reaction-common-DkrQdBSZ.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{runtime-6S3DNFNv.js → .setup/runtime-6S3DNFNv.mjs} +0 -0
- /package/dist/{runtime-BefyhPWv.js → .setup/runtime-BefyhPWv.mjs} +0 -0
- /package/dist/{storage-paths-gUmSydsW.js → .setup/storage-paths-gUmSydsW.mjs} +0 -0
- /package/dist/{target-ids-Nwx7cMVE.js → .setup/target-ids-Nwx7cMVE.mjs} +0 -0
- /package/dist/{thread-bindings-shared-oNPiyMWY.js → .setup/thread-bindings-shared-oNPiyMWY.mjs} +0 -0
- /package/dist/{url-validation-GRHde6lq.js → .setup/url-validation-GRHde6lq.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markdown-it 15.0.
|
|
1
|
+
/*! markdown-it 15.0.2 https://github.com/markdown-it/markdown-it @license MIT */
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var e = Object.defineProperty, t = (t, n) => {
|
|
4
4
|
let r = {};
|
|
@@ -313,49 +313,49 @@ var E;
|
|
|
313
313
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
314
314
|
})(E || (E = {}));
|
|
315
315
|
var fe = 32;
|
|
316
|
-
function
|
|
316
|
+
function D(e) {
|
|
317
317
|
return e >= E.ZERO && e <= E.NINE;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function pe(e) {
|
|
320
320
|
return e >= E.UPPER_A && e <= E.UPPER_F || e >= E.LOWER_A && e <= E.LOWER_F;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
return e >= E.UPPER_A && e <= E.UPPER_Z || e >= E.LOWER_A && e <= E.LOWER_Z ||
|
|
322
|
+
function me(e) {
|
|
323
|
+
return e >= E.UPPER_A && e <= E.UPPER_Z || e >= E.LOWER_A && e <= E.LOWER_Z || D(e);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return e === E.EQUALS ||
|
|
325
|
+
function he(e) {
|
|
326
|
+
return e === E.EQUALS || me(e);
|
|
327
327
|
}
|
|
328
|
-
var
|
|
328
|
+
var O;
|
|
329
329
|
(function(e) {
|
|
330
330
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
331
|
-
})(
|
|
332
|
-
var
|
|
331
|
+
})(O || (O = {}));
|
|
332
|
+
var k;
|
|
333
333
|
(function(e) {
|
|
334
334
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
335
|
-
})(
|
|
336
|
-
var
|
|
335
|
+
})(k || (k = {}));
|
|
336
|
+
var ge = class {
|
|
337
337
|
constructor(e, t, n) {
|
|
338
|
-
T(this, "decodeTree", void 0), T(this, "emitCodePoint", void 0), T(this, "errors", void 0), T(this, "state",
|
|
338
|
+
T(this, "decodeTree", void 0), T(this, "emitCodePoint", void 0), T(this, "errors", void 0), T(this, "state", O.EntityStart), T(this, "consumed", 1), T(this, "result", 0), T(this, "treeIndex", 0), T(this, "excess", 1), T(this, "decodeMode", k.Strict), T(this, "runConsumed", 0), this.decodeTree = e, this.emitCodePoint = t, this.errors = n;
|
|
339
339
|
}
|
|
340
340
|
startEntity(e) {
|
|
341
|
-
this.decodeMode = e, this.state =
|
|
341
|
+
this.decodeMode = e, this.state = O.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1, this.runConsumed = 0;
|
|
342
342
|
}
|
|
343
343
|
write(e, t) {
|
|
344
344
|
switch (this.state) {
|
|
345
|
-
case
|
|
346
|
-
case
|
|
347
|
-
case
|
|
348
|
-
case
|
|
349
|
-
case
|
|
345
|
+
case O.EntityStart: return e.charCodeAt(t) === E.NUM ? (this.state = O.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = O.NamedEntity, this.stateNamedEntity(e, t));
|
|
346
|
+
case O.NumericStart: return this.stateNumericStart(e, t);
|
|
347
|
+
case O.NumericDecimal: return this.stateNumericDecimal(e, t);
|
|
348
|
+
case O.NumericHex: return this.stateNumericHex(e, t);
|
|
349
|
+
case O.NamedEntity: return this.stateNamedEntity(e, t);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
stateNumericStart(e, t) {
|
|
353
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) | fe) === E.LOWER_X ? (this.state =
|
|
353
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | fe) === E.LOWER_X ? (this.state = O.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = O.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
354
354
|
}
|
|
355
355
|
stateNumericHex(e, t) {
|
|
356
356
|
for (; t < e.length;) {
|
|
357
357
|
let n = e.charCodeAt(t);
|
|
358
|
-
if (
|
|
358
|
+
if (D(n) || pe(n)) {
|
|
359
359
|
let e = n <= E.NINE ? n - E.ZERO : (n | fe) - E.LOWER_A + 10;
|
|
360
360
|
this.result = this.result * 16 + e, this.consumed++, t++;
|
|
361
361
|
} else return this.emitNumericEntity(n, 3);
|
|
@@ -365,7 +365,7 @@ var _e = class {
|
|
|
365
365
|
stateNumericDecimal(e, t) {
|
|
366
366
|
for (; t < e.length;) {
|
|
367
367
|
let n = e.charCodeAt(t);
|
|
368
|
-
if (
|
|
368
|
+
if (D(n)) this.result = this.result * 10 + (n - E.ZERO), this.consumed++, t++;
|
|
369
369
|
else return this.emitNumericEntity(n, 2);
|
|
370
370
|
}
|
|
371
371
|
return -1;
|
|
@@ -376,7 +376,7 @@ var _e = class {
|
|
|
376
376
|
return (n = this.errors) == null || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
377
377
|
}
|
|
378
378
|
if (e === E.SEMI) this.consumed += 1;
|
|
379
|
-
else if (this.decodeMode ===
|
|
379
|
+
else if (this.decodeMode === k.Strict) return 0;
|
|
380
380
|
return this.emitCodePoint(se(this.result), this.consumed), this.errors && (e !== E.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
381
381
|
}
|
|
382
382
|
stateNamedEntity(e, t) {
|
|
@@ -400,10 +400,10 @@ var _e = class {
|
|
|
400
400
|
if (t >= e.length) break;
|
|
401
401
|
let a = e.charCodeAt(t);
|
|
402
402
|
if (a === E.SEMI && i !== 0 && (r & C.FLAG13) !== 0) return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
|
403
|
-
if (this.treeIndex =
|
|
403
|
+
if (this.treeIndex = ve(n, r, this.treeIndex + Math.max(1, i), a), this.treeIndex < 0) return this.result === 0 || this.decodeMode === k.Attribute && (i === 0 || he(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
404
404
|
if (r = n[this.treeIndex], i = (r & C.VALUE_LENGTH) >> 14, i !== 0) {
|
|
405
405
|
if (a === E.SEMI) return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
|
406
|
-
this.decodeMode !==
|
|
406
|
+
this.decodeMode !== k.Strict && (r & C.FLAG13) === 0 && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
407
407
|
}
|
|
408
408
|
t++, this.excess++;
|
|
409
409
|
}
|
|
@@ -420,18 +420,18 @@ var _e = class {
|
|
|
420
420
|
}
|
|
421
421
|
end() {
|
|
422
422
|
switch (this.state) {
|
|
423
|
-
case
|
|
424
|
-
case
|
|
425
|
-
case
|
|
426
|
-
case
|
|
423
|
+
case O.NamedEntity: return this.result !== 0 && (this.decodeMode !== k.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
424
|
+
case O.NumericDecimal: return this.emitNumericEntity(0, 2);
|
|
425
|
+
case O.NumericHex: return this.emitNumericEntity(0, 3);
|
|
426
|
+
case O.NumericStart:
|
|
427
427
|
var e;
|
|
428
428
|
return (e = this.errors) == null || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
429
|
-
case
|
|
429
|
+
case O.EntityStart: return 0;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
function
|
|
434
|
-
let t = "", n = new
|
|
433
|
+
function _e(e) {
|
|
434
|
+
let t = "", n = new ge(e, (e) => t += String.fromCodePoint(e));
|
|
435
435
|
return function(e, r) {
|
|
436
436
|
let i = 0, a = 0;
|
|
437
437
|
for (; (a = e.indexOf("&", a)) >= 0;) {
|
|
@@ -447,7 +447,7 @@ function ve(e) {
|
|
|
447
447
|
return t = "", o;
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function ve(e, t, n, r) {
|
|
451
451
|
let i = (t & C.BRANCH_LENGTH) >> 7, a = t & C.JUMP_TABLE;
|
|
452
452
|
if (i === 0) return a !== 0 && r === a ? n : -1;
|
|
453
453
|
if (a) {
|
|
@@ -463,43 +463,43 @@ function ye(e, t, n, r) {
|
|
|
463
463
|
}
|
|
464
464
|
return -1;
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
return
|
|
466
|
+
var ye = /* #__PURE__ */ _e(le);
|
|
467
|
+
function be(e) {
|
|
468
|
+
return ye(e, k.Strict);
|
|
469
469
|
}
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/common/utils.ts
|
|
472
|
-
var
|
|
473
|
-
arrayReplaceAt: () =>
|
|
474
|
-
asciiTrim: () =>
|
|
475
|
-
callable: () =>
|
|
476
|
-
escapeHtml: () =>
|
|
477
|
-
escapeRE: () =>
|
|
478
|
-
fromCodePoint: () =>
|
|
479
|
-
isMdAsciiPunct: () =>
|
|
480
|
-
isPunctChar: () =>
|
|
481
|
-
isPunctCharCode: () =>
|
|
482
|
-
isSpace: () =>
|
|
483
|
-
isValidEntityCode: () =>
|
|
484
|
-
isWhiteSpace: () =>
|
|
485
|
-
lib: () =>
|
|
486
|
-
normalizeReference: () =>
|
|
487
|
-
unescapeAll: () =>
|
|
488
|
-
unescapeMd: () =>
|
|
472
|
+
var xe = /* @__PURE__ */ t({
|
|
473
|
+
arrayReplaceAt: () => Ce,
|
|
474
|
+
asciiTrim: () => R,
|
|
475
|
+
callable: () => Se,
|
|
476
|
+
escapeHtml: () => M,
|
|
477
|
+
escapeRE: () => Fe,
|
|
478
|
+
fromCodePoint: () => A,
|
|
479
|
+
isMdAsciiPunct: () => I,
|
|
480
|
+
isPunctChar: () => Ie,
|
|
481
|
+
isPunctCharCode: () => F,
|
|
482
|
+
isSpace: () => N,
|
|
483
|
+
isValidEntityCode: () => we,
|
|
484
|
+
isWhiteSpace: () => P,
|
|
485
|
+
lib: () => Re,
|
|
486
|
+
normalizeReference: () => L,
|
|
487
|
+
unescapeAll: () => j,
|
|
488
|
+
unescapeMd: () => ke
|
|
489
489
|
});
|
|
490
|
-
function
|
|
490
|
+
function Se(e) {
|
|
491
491
|
let t = function(...n) {
|
|
492
492
|
return Reflect.construct(e, n, new.target && new.target !== t ? new.target : e);
|
|
493
493
|
};
|
|
494
494
|
return Object.defineProperty(t, "name", { value: e.name }), Object.setPrototypeOf(t, e), t.prototype = e.prototype, t;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Ce(e, t, n) {
|
|
497
497
|
return [].concat(e.slice(0, t), n, e.slice(t + 1));
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function we(e) {
|
|
500
500
|
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) == 65535 || (e & 65535) == 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function A(e) {
|
|
503
503
|
if (e > 65535) {
|
|
504
504
|
e -= 65536;
|
|
505
505
|
let t = 55296 + (e >> 10), n = 56320 + (e & 1023);
|
|
@@ -507,47 +507,47 @@ function k(e) {
|
|
|
507
507
|
}
|
|
508
508
|
return String.fromCharCode(e);
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
if (t.charCodeAt(0) === 35 &&
|
|
510
|
+
var Te = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ee = RegExp(`${Te.source}|&([a-z#][a-z0-9]{1,31});`, "gi"), De = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
511
|
+
function Oe(e, t) {
|
|
512
|
+
if (t.charCodeAt(0) === 35 && De.test(t)) {
|
|
513
513
|
let n = t[1].toLowerCase() === "x" ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
|
|
514
|
-
return
|
|
514
|
+
return we(n) ? A(n) : e;
|
|
515
515
|
}
|
|
516
|
-
let n =
|
|
516
|
+
let n = be(e);
|
|
517
517
|
return n === e ? e : n;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return e.indexOf("\\") < 0 ? e : e.replace(
|
|
519
|
+
function ke(e) {
|
|
520
|
+
return e.indexOf("\\") < 0 ? e : e.replace(Te, "$1");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(
|
|
524
|
-
return t ||
|
|
522
|
+
function j(e) {
|
|
523
|
+
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ee, function(e, t, n) {
|
|
524
|
+
return t || Oe(e, n);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
var
|
|
527
|
+
var Ae = /[&<>"]/, je = /[&<>"]/g, Me = {
|
|
528
528
|
"&": "&",
|
|
529
529
|
"<": "<",
|
|
530
530
|
">": ">",
|
|
531
531
|
"\"": """
|
|
532
532
|
};
|
|
533
|
-
function
|
|
534
|
-
return
|
|
533
|
+
function Ne(e) {
|
|
534
|
+
return Me[e];
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
return
|
|
536
|
+
function M(e) {
|
|
537
|
+
return Ae.test(e) ? e.replace(je, Ne) : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
function
|
|
541
|
-
return e.replace(
|
|
539
|
+
var Pe = /[.?*+^$[\]\\(){}|-]/g;
|
|
540
|
+
function Fe(e) {
|
|
541
|
+
return e.replace(Pe, "\\$&");
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function N(e) {
|
|
544
544
|
switch (e) {
|
|
545
545
|
case 9:
|
|
546
546
|
case 32: return !0;
|
|
547
547
|
}
|
|
548
548
|
return !1;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function P(e) {
|
|
551
551
|
if (e >= 8192 && e <= 8202) return !0;
|
|
552
552
|
switch (e) {
|
|
553
553
|
case 9:
|
|
@@ -564,13 +564,13 @@ function N(e) {
|
|
|
564
564
|
}
|
|
565
565
|
return !1;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ie(e) {
|
|
568
568
|
return S.test(e) || ie.test(e);
|
|
569
569
|
}
|
|
570
|
-
function P(e) {
|
|
571
|
-
return Le(k(e));
|
|
572
|
-
}
|
|
573
570
|
function F(e) {
|
|
571
|
+
return Ie(A(e));
|
|
572
|
+
}
|
|
573
|
+
function I(e) {
|
|
574
574
|
switch (e) {
|
|
575
575
|
case 33:
|
|
576
576
|
case 34:
|
|
@@ -607,26 +607,26 @@ function F(e) {
|
|
|
607
607
|
default: return !1;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function L(e) {
|
|
611
611
|
return e = e.trim().replace(/\s+/g, " "), e.toLowerCase().toUpperCase();
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Le(e) {
|
|
614
614
|
return e === 32 || e === 9 || e === 10 || e === 13;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function R(e) {
|
|
617
617
|
let t = 0;
|
|
618
|
-
for (; t < e.length &&
|
|
618
|
+
for (; t < e.length && Le(e.charCodeAt(t)); t++);
|
|
619
619
|
let n = e.length - 1;
|
|
620
|
-
for (; n >= t &&
|
|
620
|
+
for (; n >= t && Le(e.charCodeAt(n)); n--);
|
|
621
621
|
return e.slice(t, n + 1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
623
|
+
var Re = {
|
|
624
624
|
mdurl: ee,
|
|
625
625
|
ucmicro: te
|
|
626
626
|
};
|
|
627
627
|
//#endregion
|
|
628
628
|
//#region src/helpers/parse_link_label.ts
|
|
629
|
-
function
|
|
629
|
+
function ze(e, t, n) {
|
|
630
630
|
let r, i, a, o, s = e.posMax, c = e.pos;
|
|
631
631
|
for (e.pos = t + 1, r = 1; e.pos < s;) {
|
|
632
632
|
if (a = e.src.charCodeAt(e.pos), a === 93 && (r--, r === 0)) {
|
|
@@ -643,7 +643,7 @@ function Be(e, t, n) {
|
|
|
643
643
|
}
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/helpers/parse_link_destination.ts
|
|
646
|
-
function
|
|
646
|
+
function Be(e, t, n) {
|
|
647
647
|
let r, i = t, a = {
|
|
648
648
|
ok: !1,
|
|
649
649
|
pos: 0,
|
|
@@ -652,7 +652,7 @@ function Ve(e, t, n) {
|
|
|
652
652
|
if (e.charCodeAt(i) === 60) {
|
|
653
653
|
for (i++; i < n;) {
|
|
654
654
|
if (r = e.charCodeAt(i), r === 10 || r === 60) return a;
|
|
655
|
-
if (r === 62) return a.pos = i + 1, a.str =
|
|
655
|
+
if (r === 62) return a.pos = i + 1, a.str = j(e.slice(t + 1, i)), a.ok = !0, a;
|
|
656
656
|
if (r === 92 && i + 1 < n) {
|
|
657
657
|
i += 2;
|
|
658
658
|
continue;
|
|
@@ -678,11 +678,11 @@ function Ve(e, t, n) {
|
|
|
678
678
|
}
|
|
679
679
|
i++;
|
|
680
680
|
}
|
|
681
|
-
return t === i || o !== 0 ? a : (a.str =
|
|
681
|
+
return t === i || o !== 0 ? a : (a.str = j(e.slice(t, i)), a.pos = i, a.ok = !0, a);
|
|
682
682
|
}
|
|
683
683
|
//#endregion
|
|
684
684
|
//#region src/helpers/parse_link_title.ts
|
|
685
|
-
function
|
|
685
|
+
function Ve(e, t, n, r) {
|
|
686
686
|
let i, a = t, o = {
|
|
687
687
|
ok: !1,
|
|
688
688
|
can_continue: !1,
|
|
@@ -698,19 +698,19 @@ function He(e, t, n, r) {
|
|
|
698
698
|
t++, a++, r === 40 && (r = 41), o.marker = r;
|
|
699
699
|
}
|
|
700
700
|
for (; a < n;) {
|
|
701
|
-
if (i = e.charCodeAt(a), i === o.marker) return o.pos = a + 1, o.str +=
|
|
701
|
+
if (i = e.charCodeAt(a), i === o.marker) return o.pos = a + 1, o.str += j(e.slice(t, a)), o.ok = !0, o;
|
|
702
702
|
if (i === 40 && o.marker === 41) return o;
|
|
703
703
|
i === 92 && a + 1 < n && a++, a++;
|
|
704
704
|
}
|
|
705
|
-
return o.can_continue = !0, o.str +=
|
|
705
|
+
return o.can_continue = !0, o.str += j(e.slice(t, a)), o;
|
|
706
706
|
}
|
|
707
707
|
//#endregion
|
|
708
708
|
//#region src/helpers/index.ts
|
|
709
|
-
var
|
|
710
|
-
parseLinkDestination: () =>
|
|
711
|
-
parseLinkLabel: () =>
|
|
712
|
-
parseLinkTitle: () =>
|
|
713
|
-
}),
|
|
709
|
+
var He = /* @__PURE__ */ t({
|
|
710
|
+
parseLinkDestination: () => Be,
|
|
711
|
+
parseLinkLabel: () => ze,
|
|
712
|
+
parseLinkTitle: () => Ve
|
|
713
|
+
}), z = class {
|
|
714
714
|
constructor(e, t, n) {
|
|
715
715
|
T(this, "map", null), T(this, "level", 0), T(this, "children", null), T(this, "content", ""), T(this, "markup", ""), T(this, "info", ""), T(this, "block", !1), T(this, "hidden", !1), this.type = e, this.tag = t, this.attrs = null, this.nesting = n, this.meta = null;
|
|
716
716
|
}
|
|
@@ -735,7 +735,7 @@ var Ue = /* @__PURE__ */ t({
|
|
|
735
735
|
let n = this.attrIndex(e);
|
|
736
736
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = `${this.attrs[n][1]} ${t}`;
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, B = class {
|
|
739
739
|
constructor() {
|
|
740
740
|
T(this, "__rules__", []), T(this, "__cache__", null);
|
|
741
741
|
}
|
|
@@ -822,21 +822,21 @@ var Ue = /* @__PURE__ */ t({
|
|
|
822
822
|
getRules(e) {
|
|
823
823
|
return this.__cache__ || this.__compile__(), this.__cache__[e] || [];
|
|
824
824
|
}
|
|
825
|
-
},
|
|
826
|
-
|
|
825
|
+
}, V = {};
|
|
826
|
+
V.code_inline = function(e, t, n, r, i) {
|
|
827
827
|
let a = e[t];
|
|
828
|
-
return `<code${i.renderAttrs(a)}>${
|
|
829
|
-
},
|
|
828
|
+
return `<code${i.renderAttrs(a)}>${M(a.content)}</code>`;
|
|
829
|
+
}, V.code_block = function(e, t, n, r, i) {
|
|
830
830
|
let a = e[t];
|
|
831
|
-
return `<pre${i.renderAttrs(a)}><code>${
|
|
832
|
-
},
|
|
833
|
-
let a = e[t], o = a.info ?
|
|
831
|
+
return `<pre${i.renderAttrs(a)}><code>${M(e[t].content)}</code></pre>\n`;
|
|
832
|
+
}, V.fence = function(e, t, n, r, i) {
|
|
833
|
+
let a = e[t], o = a.info ? j(a.info).trim() : "", s = "", c = "";
|
|
834
834
|
if (o) {
|
|
835
835
|
let e = o.split(/(\s+)/g);
|
|
836
836
|
s = e[0], c = e.slice(2).join("");
|
|
837
837
|
}
|
|
838
838
|
let l;
|
|
839
|
-
if (l = n.highlight && n.highlight(a.content, s, c) ||
|
|
839
|
+
if (l = n.highlight && n.highlight(a.content, s, c) || M(a.content), l.indexOf("<pre") === 0) return l + "\n";
|
|
840
840
|
if (o) {
|
|
841
841
|
let e = a.attrIndex("class"), t = a.attrs ? a.attrs.slice() : [];
|
|
842
842
|
e < 0 ? t.push(["class", `${n.langPrefix}${s}`]) : (t[e] = [t[e][0], t[e][1]], t[e][1] += ` ${n.langPrefix}${s}`);
|
|
@@ -844,28 +844,28 @@ B.code_inline = function(e, t, n, r, i) {
|
|
|
844
844
|
return `<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`;
|
|
845
845
|
}
|
|
846
846
|
return `<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`;
|
|
847
|
-
},
|
|
847
|
+
}, V.image = function(e, t, n, r, i) {
|
|
848
848
|
let a = e[t];
|
|
849
849
|
return a.attrs[a.attrIndex("alt")][1] = i.renderInlineAsText(a.children, n, r), i.renderToken(e, t, n);
|
|
850
|
-
},
|
|
850
|
+
}, V.hardbreak = function(e, t, n) {
|
|
851
851
|
return n.xhtmlOut ? "<br />\n" : "<br>\n";
|
|
852
|
-
},
|
|
852
|
+
}, V.softbreak = function(e, t, n) {
|
|
853
853
|
return n.breaks ? n.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
|
|
854
|
-
},
|
|
855
|
-
return
|
|
856
|
-
},
|
|
854
|
+
}, V.text = function(e, t) {
|
|
855
|
+
return M(e[t].content);
|
|
856
|
+
}, V.html_block = function(e, t) {
|
|
857
857
|
return e[t].content;
|
|
858
|
-
},
|
|
858
|
+
}, V.html_inline = function(e, t) {
|
|
859
859
|
return e[t].content;
|
|
860
860
|
};
|
|
861
|
-
var
|
|
861
|
+
var Ue = class {
|
|
862
862
|
constructor() {
|
|
863
|
-
T(this, "rules", Object.assign({},
|
|
863
|
+
T(this, "rules", Object.assign({}, V));
|
|
864
864
|
}
|
|
865
865
|
renderAttrs(e) {
|
|
866
866
|
let t, n, r;
|
|
867
867
|
if (!e.attrs) return "";
|
|
868
|
-
for (r = "", t = 0, n = e.attrs.length; t < n; t++) r += ` ${
|
|
868
|
+
for (r = "", t = 0, n = e.attrs.length; t < n; t++) r += ` ${M(e.attrs[t][0])}="${M(String(e.attrs[t][1]))}"`;
|
|
869
869
|
return r;
|
|
870
870
|
}
|
|
871
871
|
renderToken(e, t, n) {
|
|
@@ -920,31 +920,31 @@ var We = class {
|
|
|
920
920
|
}
|
|
921
921
|
return r;
|
|
922
922
|
}
|
|
923
|
-
},
|
|
923
|
+
}, We = class {
|
|
924
924
|
constructor(e, t, n) {
|
|
925
|
-
T(this, "tokens", []), T(this, "inlineMode", !1), T(this, "Token",
|
|
925
|
+
T(this, "tokens", []), T(this, "inlineMode", !1), T(this, "Token", z), this.src = e, this.env = n, this.md = t;
|
|
926
926
|
}
|
|
927
|
-
},
|
|
928
|
-
function
|
|
927
|
+
}, Ge = /\r\n?/g, Ke = /\0/g;
|
|
928
|
+
function qe(e) {
|
|
929
929
|
let t;
|
|
930
|
-
t = e.src.replace(
|
|
930
|
+
t = e.src.replace(Ge, "\n"), t = t.replace(Ke, "�"), e.src = t;
|
|
931
931
|
}
|
|
932
932
|
//#endregion
|
|
933
933
|
//#region src/rules_core/block.ts
|
|
934
|
-
function
|
|
934
|
+
function Je(e) {
|
|
935
935
|
let t;
|
|
936
936
|
e.inlineMode ? (t = new e.Token("inline", "", 0), t.content = e.src, t.map = [0, 1], t.children = [], e.tokens.push(t)) : e.md.block.parse(e.src, e.md, e.env, e.tokens);
|
|
937
937
|
}
|
|
938
938
|
//#endregion
|
|
939
939
|
//#region src/rules_core/strip_references.ts
|
|
940
|
-
function
|
|
940
|
+
function Ye(e) {
|
|
941
941
|
let t = e.tokens, n = 0;
|
|
942
942
|
for (let e = 0; e < t.length; e++) t[e].type !== "reference_definition" && (e !== n && (t[n] = t[e]), n++);
|
|
943
943
|
t.length !== n && (t.length = n);
|
|
944
944
|
}
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region src/rules_core/inline.ts
|
|
947
|
-
function
|
|
947
|
+
function Xe(e) {
|
|
948
948
|
let t = e.tokens;
|
|
949
949
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
950
950
|
let r = t[n];
|
|
@@ -953,90 +953,113 @@ function Ze(e) {
|
|
|
953
953
|
}
|
|
954
954
|
//#endregion
|
|
955
955
|
//#region src/rules_core/linkify.ts
|
|
956
|
-
function
|
|
956
|
+
function Ze(e) {
|
|
957
957
|
return /^<a[>\s]/i.test(e);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Qe(e) {
|
|
960
960
|
return /^<\/a\s*>/i.test(e);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function $e(e) {
|
|
963
963
|
let t = e.tokens;
|
|
964
964
|
if (e.md.options.linkify) for (let n = 0, r = t.length; n < r; n++) {
|
|
965
965
|
if (t[n].type !== "inline" || !e.md.linkify.test(t[n].content)) continue;
|
|
966
|
-
let r = t[n].children, i = 0;
|
|
967
|
-
for (let
|
|
968
|
-
let
|
|
969
|
-
if (
|
|
970
|
-
for (
|
|
966
|
+
let r = t[n].children, i = [], a = 0;
|
|
967
|
+
for (let t = r.length - 1; t >= 0; t--) {
|
|
968
|
+
let n = r[t];
|
|
969
|
+
if (n.type === "link_close") {
|
|
970
|
+
for (t--; r[t].level !== n.level && r[t].type !== "link_open";) t--;
|
|
971
971
|
continue;
|
|
972
972
|
}
|
|
973
|
-
if (
|
|
974
|
-
let
|
|
975
|
-
|
|
976
|
-
for (let t = 0; t <
|
|
977
|
-
let n =
|
|
973
|
+
if (n.type === "html_inline" && (Ze(n.content) && a > 0 && a--, Qe(n.content) && a++), !(a > 0) && n.type === "text" && e.md.linkify.test(n.content)) {
|
|
974
|
+
let a = n.content, o = e.md.linkify.match(a), s = [], c = n.level, l = 0;
|
|
975
|
+
o.length > 0 && o[0].index === 0 && t > 0 && r[t - 1].type === "text_special" && (o = o.slice(1));
|
|
976
|
+
for (let t = 0; t < o.length; t++) {
|
|
977
|
+
let n = o[t].url, r = e.md.normalizeLink(n);
|
|
978
978
|
if (!e.md.validateLink(r)) continue;
|
|
979
|
-
let
|
|
980
|
-
|
|
981
|
-
let
|
|
982
|
-
if (
|
|
979
|
+
let i = o[t].text;
|
|
980
|
+
i = o[t].schema ? o[t].schema === "mailto:" && !/^mailto:/i.test(i) ? e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/, "") : e.md.normalizeLinkText(i) : e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//, "");
|
|
981
|
+
let u = o[t].index;
|
|
982
|
+
if (u > l) {
|
|
983
983
|
let t = new e.Token("text", "", 0);
|
|
984
|
-
t.content =
|
|
984
|
+
t.content = a.slice(l, u), t.level = c, s.push(t);
|
|
985
985
|
}
|
|
986
986
|
let d = new e.Token("link_open", "a", 1);
|
|
987
|
-
d.attrs = [["href", r]], d.level =
|
|
987
|
+
d.attrs = [["href", r]], d.level = c++, d.markup = "linkify", d.info = "auto", s.push(d);
|
|
988
988
|
let f = new e.Token("text", "", 0);
|
|
989
|
-
f.content =
|
|
989
|
+
f.content = i, f.level = c, s.push(f);
|
|
990
990
|
let p = new e.Token("link_close", "a", -1);
|
|
991
|
-
p.level = --
|
|
991
|
+
p.level = --c, p.markup = "linkify", p.info = "auto", s.push(p), l = o[t].lastIndex;
|
|
992
992
|
}
|
|
993
|
-
if (
|
|
993
|
+
if (l < a.length) {
|
|
994
994
|
let t = new e.Token("text", "", 0);
|
|
995
|
-
t.content =
|
|
995
|
+
t.content = a.slice(l), t.level = c, s.push(t);
|
|
996
996
|
}
|
|
997
|
-
|
|
997
|
+
i.push({
|
|
998
|
+
index: t,
|
|
999
|
+
nodes: s
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
if (i.length > 0) {
|
|
1004
|
+
let e = r.length;
|
|
1005
|
+
for (let t of i) e += t.nodes.length - 1;
|
|
1006
|
+
let a = Array(e), o = 0, s = 0;
|
|
1007
|
+
i.reverse();
|
|
1008
|
+
for (let e = 0; e < r.length; e++) {
|
|
1009
|
+
let t = i[o];
|
|
1010
|
+
if ((t == null ? void 0 : t.index) === e) {
|
|
1011
|
+
for (let e of t.nodes) a[s++] = e;
|
|
1012
|
+
o++;
|
|
1013
|
+
} else a[s++] = r[e];
|
|
998
1014
|
}
|
|
1015
|
+
t[n].children = a;
|
|
999
1016
|
}
|
|
1000
1017
|
}
|
|
1001
1018
|
}
|
|
1002
1019
|
//#endregion
|
|
1003
1020
|
//#region src/rules_core/replacements.ts
|
|
1004
|
-
var
|
|
1021
|
+
var et = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, tt = /\((c|tm|r)\)/i, nt = /\((c|tm|r)\)/gi, rt = {
|
|
1005
1022
|
c: "©",
|
|
1006
1023
|
r: "®",
|
|
1007
1024
|
tm: "™"
|
|
1008
1025
|
};
|
|
1009
|
-
function
|
|
1010
|
-
return
|
|
1026
|
+
function it(e, t) {
|
|
1027
|
+
return rt[t.toLowerCase()];
|
|
1011
1028
|
}
|
|
1012
|
-
function
|
|
1029
|
+
function at(e) {
|
|
1013
1030
|
let t = 0;
|
|
1014
1031
|
for (let n = e.length - 1; n >= 0; n--) {
|
|
1015
1032
|
let r = e[n];
|
|
1016
|
-
r.type === "text" && !t && (r.content = r.content.replace(
|
|
1033
|
+
r.type === "text" && !t && (r.content = r.content.replace(nt, it)), r.type === "link_open" && r.info === "auto" && t--, r.type === "link_close" && r.info === "auto" && t++;
|
|
1017
1034
|
}
|
|
1018
1035
|
}
|
|
1019
|
-
function
|
|
1036
|
+
function ot(e) {
|
|
1020
1037
|
let t = 0;
|
|
1021
1038
|
for (let n = e.length - 1; n >= 0; n--) {
|
|
1022
1039
|
let r = e[n];
|
|
1023
|
-
r.type === "text" && !t &&
|
|
1040
|
+
r.type === "text" && !t && et.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–")), r.type === "link_open" && r.info === "auto" && t--, r.type === "link_close" && r.info === "auto" && t++;
|
|
1024
1041
|
}
|
|
1025
1042
|
}
|
|
1026
|
-
function
|
|
1043
|
+
function st(e) {
|
|
1027
1044
|
let t;
|
|
1028
|
-
if (e.md.options.typographer) for (t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type === "inline" && (
|
|
1045
|
+
if (e.md.options.typographer) for (t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type === "inline" && (tt.test(e.tokens[t].content) && at(e.tokens[t].children), et.test(e.tokens[t].content) && ot(e.tokens[t].children));
|
|
1029
1046
|
}
|
|
1030
1047
|
//#endregion
|
|
1031
1048
|
//#region src/rules_core/smartquotes.ts
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1049
|
+
var ct = /['"]/, lt = /['"]/g, ut = "’", dt = 1e3;
|
|
1050
|
+
function ft(e, t, n) {
|
|
1051
|
+
for (; e.length > n;) {
|
|
1052
|
+
let n = e.pop();
|
|
1053
|
+
n.isSingleQuote ? t.single = n.prevSameQuoteIdx : t.double = n.prevSameQuoteIdx;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
function H(e, t, n, r) {
|
|
1034
1057
|
e[t] || (e[t] = []), e[t].push({
|
|
1035
1058
|
pos: n,
|
|
1036
1059
|
ch: r
|
|
1037
1060
|
});
|
|
1038
1061
|
}
|
|
1039
|
-
function
|
|
1062
|
+
function pt(e, t) {
|
|
1040
1063
|
let n = "", r = 0;
|
|
1041
1064
|
t.sort((e, t) => e.pos - t.pos);
|
|
1042
1065
|
for (let i = 0; i < t.length; i++) {
|
|
@@ -1045,107 +1068,109 @@ function ft(e, t) {
|
|
|
1045
1068
|
}
|
|
1046
1069
|
return n + e.slice(r);
|
|
1047
1070
|
}
|
|
1048
|
-
function
|
|
1049
|
-
let n, r = [], i = {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
let
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1071
|
+
function mt(e, t) {
|
|
1072
|
+
let n, r = [], i = {
|
|
1073
|
+
single: -1,
|
|
1074
|
+
double: -1
|
|
1075
|
+
}, a = {};
|
|
1076
|
+
for (let o = 0; o < e.length; o++) {
|
|
1077
|
+
let s = e[o], c = e[o].level;
|
|
1078
|
+
for (n = r.length - 1; n >= 0 && !(r[n].level <= c); n--);
|
|
1079
|
+
if (ft(r, i, n + 1), s.type !== "text") continue;
|
|
1080
|
+
let l = s.content, u = 0, d = l.length;
|
|
1081
|
+
OUTER: for (; u < d;) {
|
|
1082
|
+
lt.lastIndex = u;
|
|
1083
|
+
let s = lt.exec(l);
|
|
1084
|
+
if (!s) break;
|
|
1085
|
+
let f = !0, p = !0;
|
|
1086
|
+
u = s.index + 1;
|
|
1087
|
+
let m = s[0] === "'", h = 32;
|
|
1088
|
+
if (s.index - 1 >= 0) h = l.charCodeAt(s.index - 1);
|
|
1089
|
+
else for (n = o - 1; n >= 0 && e[n].type !== "softbreak" && e[n].type !== "hardbreak"; n--) if (e[n].content) {
|
|
1090
|
+
h = e[n].content.charCodeAt(e[n].content.length - 1);
|
|
1065
1091
|
break;
|
|
1066
1092
|
}
|
|
1067
|
-
let
|
|
1068
|
-
if (
|
|
1069
|
-
else for (n =
|
|
1070
|
-
|
|
1093
|
+
let g = 32;
|
|
1094
|
+
if (u < d) g = l.charCodeAt(u);
|
|
1095
|
+
else for (n = o + 1; n < e.length && e[n].type !== "softbreak" && e[n].type !== "hardbreak"; n++) if (e[n].content) {
|
|
1096
|
+
g = e[n].content.charCodeAt(0);
|
|
1071
1097
|
break;
|
|
1072
1098
|
}
|
|
1073
|
-
let
|
|
1074
|
-
if (
|
|
1075
|
-
|
|
1099
|
+
let _ = I(h) || F(h), v = I(g) || F(g), y = P(h), b = P(g);
|
|
1100
|
+
if (b ? f = !1 : v && (y || _ || (f = !1)), y ? p = !1 : _ && (b || v || (p = !1)), g === 34 && s[0] === "\"" && h >= 48 && h <= 57 && (p = f = !1), f && p && (f = _, p = v), !f && !p) {
|
|
1101
|
+
m && H(a, o, s.index, ut);
|
|
1076
1102
|
continue;
|
|
1077
1103
|
}
|
|
1078
|
-
if (
|
|
1079
|
-
let e = r[n];
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
e = r[n];
|
|
1083
|
-
let s, c;
|
|
1084
|
-
p ? (s = t.md.options.quotes[2], c = t.md.options.quotes[3]) : (s = t.md.options.quotes[0], c = t.md.options.quotes[1]), V(i, a, o.index, c), V(i, e.token, e.pos, s), r.length = n;
|
|
1085
|
-
continue OUTER;
|
|
1086
|
-
}
|
|
1104
|
+
if (p && (n = m ? i.single : i.double, n >= 0 && r[n].level === c)) {
|
|
1105
|
+
let e = r[n], c, l;
|
|
1106
|
+
m ? (c = t.md.options.quotes[2], l = t.md.options.quotes[3]) : (c = t.md.options.quotes[0], l = t.md.options.quotes[1]), H(a, o, s.index, l), H(a, e.tokenIdx, e.contentPos, c), ft(r, i, n);
|
|
1107
|
+
continue OUTER;
|
|
1087
1108
|
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1109
|
+
if (f) {
|
|
1110
|
+
if (r.length >= dt) return;
|
|
1111
|
+
r.push({
|
|
1112
|
+
tokenIdx: o,
|
|
1113
|
+
contentPos: s.index,
|
|
1114
|
+
isSingleQuote: m,
|
|
1115
|
+
level: c,
|
|
1116
|
+
prevSameQuoteIdx: m ? i.single : i.double
|
|
1117
|
+
}), m ? i.single = r.length - 1 : i.double = r.length - 1;
|
|
1118
|
+
} else p && m && H(a, o, s.index, ut);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
Object.keys(a).forEach(function(t) {
|
|
1097
1122
|
let n = Number(t);
|
|
1098
|
-
e[n].content =
|
|
1123
|
+
e[n].content = pt(e[n].content, a[t]);
|
|
1099
1124
|
});
|
|
1100
1125
|
}
|
|
1101
|
-
function
|
|
1102
|
-
if (e.md.options.typographer) for (let t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type !== "inline" || !
|
|
1126
|
+
function ht(e) {
|
|
1127
|
+
if (e.md.options.typographer) for (let t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type !== "inline" || !ct.test(e.tokens[t].content) || mt(e.tokens[t].children, e);
|
|
1103
1128
|
}
|
|
1104
1129
|
//#endregion
|
|
1105
1130
|
//#region src/rules_core/text_join.ts
|
|
1106
|
-
function
|
|
1131
|
+
function gt(e) {
|
|
1107
1132
|
let t, n, r = e.length;
|
|
1108
1133
|
for (t = 0; t < r; t++) e[t].type === "text_special" && (e[t].type = "text");
|
|
1109
1134
|
for (t = n = 0; t < r; t++) e[t].type === "text" && t + 1 < r && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
1110
1135
|
t !== n && (e.length = n);
|
|
1111
1136
|
}
|
|
1112
|
-
function
|
|
1137
|
+
function _t(e) {
|
|
1113
1138
|
let t, n, r = e.tokens, i = r.length;
|
|
1114
1139
|
for (let e = 0; e < i; e++) {
|
|
1115
1140
|
if (r[e].type !== "inline") continue;
|
|
1116
1141
|
let i = r[e].children, a = i.length;
|
|
1117
|
-
for (t = 0; t < a; t++) i[t].type === "text_special" && (i[t].type = "text"), i[t].children &&
|
|
1142
|
+
for (t = 0; t < a; t++) i[t].type === "text_special" && (i[t].type = "text"), i[t].children && gt(i[t].children);
|
|
1118
1143
|
for (t = n = 0; t < a; t++) i[t].type === "text" && t + 1 < a && i[t + 1].type === "text" ? i[t + 1].content = i[t].content + i[t + 1].content : (t !== n && (i[n] = i[t]), n++);
|
|
1119
1144
|
t !== n && (i.length = n);
|
|
1120
1145
|
}
|
|
1121
1146
|
}
|
|
1122
1147
|
//#endregion
|
|
1123
1148
|
//#region src/parser_core.ts
|
|
1124
|
-
var
|
|
1125
|
-
["normalize",
|
|
1126
|
-
["block",
|
|
1127
|
-
["strip_references",
|
|
1128
|
-
["inline",
|
|
1129
|
-
["linkify",
|
|
1130
|
-
["replacements",
|
|
1131
|
-
["smartquotes",
|
|
1132
|
-
["text_join",
|
|
1133
|
-
],
|
|
1149
|
+
var U = [
|
|
1150
|
+
["normalize", qe],
|
|
1151
|
+
["block", Je],
|
|
1152
|
+
["strip_references", Ye],
|
|
1153
|
+
["inline", Xe],
|
|
1154
|
+
["linkify", $e],
|
|
1155
|
+
["replacements", st],
|
|
1156
|
+
["smartquotes", ht],
|
|
1157
|
+
["text_join", _t]
|
|
1158
|
+
], vt = class {
|
|
1134
1159
|
constructor() {
|
|
1135
|
-
T(this, "ruler", new
|
|
1136
|
-
for (let e = 0; e <
|
|
1160
|
+
T(this, "ruler", new B()), T(this, "State", We);
|
|
1161
|
+
for (let e = 0; e < U.length; e++) this.ruler.push(U[e][0], U[e][1]);
|
|
1137
1162
|
}
|
|
1138
1163
|
process(e) {
|
|
1139
1164
|
let t = this.ruler.getRules("");
|
|
1140
1165
|
for (let n = 0, r = t.length; n < r; n++) t[n](e);
|
|
1141
1166
|
}
|
|
1142
|
-
},
|
|
1167
|
+
}, yt = class {
|
|
1143
1168
|
constructor(e, t, n, r) {
|
|
1144
|
-
T(this, "bMarks", []), T(this, "eMarks", []), T(this, "tShift", []), T(this, "sCount", []), T(this, "bsCount", []), T(this, "blkIndent", 0), T(this, "line", 0), T(this, "lineMax", 0), T(this, "tight", !1), T(this, "listIndent", -1), T(this, "parentType", "root"), T(this, "level", 0), T(this, "Token",
|
|
1169
|
+
T(this, "bMarks", []), T(this, "eMarks", []), T(this, "tShift", []), T(this, "sCount", []), T(this, "bsCount", []), T(this, "blkIndent", 0), T(this, "line", 0), T(this, "lineMax", 0), T(this, "tight", !1), T(this, "listIndent", -1), T(this, "parentType", "root"), T(this, "level", 0), T(this, "Token", z), this.src = e, this.md = t, this.env = n, this.tokens = r;
|
|
1145
1170
|
let i = this.src;
|
|
1146
1171
|
for (let e = 0, t = 0, n = 0, r = 0, a = i.length, o = !1; t < a; t++) {
|
|
1147
1172
|
let s = i.charCodeAt(t);
|
|
1148
|
-
if (!o) if (
|
|
1173
|
+
if (!o) if (N(s)) {
|
|
1149
1174
|
n++, s === 9 ? r += 4 - r % 4 : r++;
|
|
1150
1175
|
continue;
|
|
1151
1176
|
} else o = !0;
|
|
@@ -1154,7 +1179,7 @@ var H = [
|
|
|
1154
1179
|
this.bMarks.push(i.length), this.eMarks.push(i.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1155
1180
|
}
|
|
1156
1181
|
push(e, t, n) {
|
|
1157
|
-
let r = new
|
|
1182
|
+
let r = new z(e, t, n);
|
|
1158
1183
|
return r.block = !0, n < 0 && this.level--, r.level = this.level, n > 0 && this.level++, this.tokens.push(r), r;
|
|
1159
1184
|
}
|
|
1160
1185
|
isEmpty(e) {
|
|
@@ -1165,12 +1190,12 @@ var H = [
|
|
|
1165
1190
|
return e;
|
|
1166
1191
|
}
|
|
1167
1192
|
skipSpaces(e) {
|
|
1168
|
-
for (let t = this.src.length; e < t &&
|
|
1193
|
+
for (let t = this.src.length; e < t && N(this.src.charCodeAt(e)); e++);
|
|
1169
1194
|
return e;
|
|
1170
1195
|
}
|
|
1171
1196
|
skipSpacesBack(e, t) {
|
|
1172
1197
|
if (e <= t) return e;
|
|
1173
|
-
for (; e > t;) if (!
|
|
1198
|
+
for (; e > t;) if (!N(this.src.charCodeAt(--e))) return e + 1;
|
|
1174
1199
|
return e;
|
|
1175
1200
|
}
|
|
1176
1201
|
skipChars(e, t) {
|
|
@@ -1189,7 +1214,7 @@ var H = [
|
|
|
1189
1214
|
let e = 0, s = this.bMarks[o], c = s, l;
|
|
1190
1215
|
for (l = o + 1 < t || r ? this.eMarks[o] + 1 : this.eMarks[o]; c < l && e < n;) {
|
|
1191
1216
|
let t = this.src.charCodeAt(c);
|
|
1192
|
-
if (
|
|
1217
|
+
if (N(t)) t === 9 ? e += 4 - (e + this.bsCount[o]) % 4 : e++;
|
|
1193
1218
|
else if (c - s < this.tShift[o]) e++;
|
|
1194
1219
|
else break;
|
|
1195
1220
|
c++;
|
|
@@ -1198,17 +1223,17 @@ var H = [
|
|
|
1198
1223
|
}
|
|
1199
1224
|
return i.join("");
|
|
1200
1225
|
}
|
|
1201
|
-
},
|
|
1202
|
-
function
|
|
1226
|
+
}, bt = 65536;
|
|
1227
|
+
function W(e, t) {
|
|
1203
1228
|
let n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t];
|
|
1204
1229
|
return e.src.slice(n, r);
|
|
1205
1230
|
}
|
|
1206
|
-
function
|
|
1231
|
+
function xt(e) {
|
|
1207
1232
|
let t = [], n = e.length, r = 0, i = e.charCodeAt(r), a = !1, o = 0, s = "";
|
|
1208
1233
|
for (; r < n;) i === 124 && (a ? (s += e.substring(o, r - 1), o = r) : (t.push(s + e.substring(o, r)), s = "", o = r + 1)), a = i === 92, r++, i = e.charCodeAt(r);
|
|
1209
1234
|
return t.push(s + e.substring(o)), t;
|
|
1210
1235
|
}
|
|
1211
|
-
function
|
|
1236
|
+
function St(e, t, n, r) {
|
|
1212
1237
|
if (t + 2 > n) return !1;
|
|
1213
1238
|
let i = t + 1;
|
|
1214
1239
|
if (e.sCount[i] < e.blkIndent || e.sCount[i] - e.blkIndent >= 4) return !1;
|
|
@@ -1217,13 +1242,13 @@ function xt(e, t, n, r) {
|
|
|
1217
1242
|
let o = e.src.charCodeAt(a++);
|
|
1218
1243
|
if (o !== 124 && o !== 45 && o !== 58 || a >= e.eMarks[i]) return !1;
|
|
1219
1244
|
let s = e.src.charCodeAt(a++);
|
|
1220
|
-
if (s !== 124 && s !== 45 && s !== 58 && !
|
|
1245
|
+
if (s !== 124 && s !== 45 && s !== 58 && !N(s) || o === 45 && N(s)) return !1;
|
|
1221
1246
|
for (; a < e.eMarks[i];) {
|
|
1222
1247
|
let t = e.src.charCodeAt(a);
|
|
1223
|
-
if (t !== 124 && t !== 45 && t !== 58 && !
|
|
1248
|
+
if (t !== 124 && t !== 45 && t !== 58 && !N(t)) return !1;
|
|
1224
1249
|
a++;
|
|
1225
1250
|
}
|
|
1226
|
-
let c =
|
|
1251
|
+
let c = W(e, t + 1), l = c.split("|"), u = [];
|
|
1227
1252
|
for (let e = 0; e < l.length; e++) {
|
|
1228
1253
|
let t = l[e].trim();
|
|
1229
1254
|
if (!t) {
|
|
@@ -1233,8 +1258,8 @@ function xt(e, t, n, r) {
|
|
|
1233
1258
|
if (!/^:?-+:?$/.test(t)) return !1;
|
|
1234
1259
|
t.charCodeAt(t.length - 1) === 58 ? u.push(t.charCodeAt(0) === 58 ? "center" : "right") : t.charCodeAt(0) === 58 ? u.push("left") : u.push("");
|
|
1235
1260
|
}
|
|
1236
|
-
if (c =
|
|
1237
|
-
l =
|
|
1261
|
+
if (c = W(e, t).trim(), c.indexOf("|") === -1 || e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
1262
|
+
l = xt(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop();
|
|
1238
1263
|
let d = l.length;
|
|
1239
1264
|
if (d === 0 || d !== u.length) return !1;
|
|
1240
1265
|
if (r) return !0;
|
|
@@ -1260,7 +1285,7 @@ function xt(e, t, n, r) {
|
|
|
1260
1285
|
r = !0;
|
|
1261
1286
|
break;
|
|
1262
1287
|
}
|
|
1263
|
-
if (r || (c =
|
|
1288
|
+
if (r || (c = W(e, i).trim(), !c) || e.sCount[i] - e.blkIndent >= 4 || (l = xt(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop(), y += d - l.length, y > bt)) break;
|
|
1264
1289
|
if (i === t + 2) {
|
|
1265
1290
|
let n = e.push("tbody_open", "tbody", 1);
|
|
1266
1291
|
n.map = v = [t + 2, 0];
|
|
@@ -1279,7 +1304,7 @@ function xt(e, t, n, r) {
|
|
|
1279
1304
|
}
|
|
1280
1305
|
//#endregion
|
|
1281
1306
|
//#region src/rules_block/code.ts
|
|
1282
|
-
function
|
|
1307
|
+
function Ct(e, t, n) {
|
|
1283
1308
|
if (e.sCount[t] - e.blkIndent < 4) return !1;
|
|
1284
1309
|
let r = t + 1, i = r;
|
|
1285
1310
|
for (; r < n;) {
|
|
@@ -1299,7 +1324,7 @@ function St(e, t, n) {
|
|
|
1299
1324
|
}
|
|
1300
1325
|
//#endregion
|
|
1301
1326
|
//#region src/rules_block/fence.ts
|
|
1302
|
-
function
|
|
1327
|
+
function wt(e, t, n, r) {
|
|
1303
1328
|
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
1304
1329
|
if (e.sCount[t] - e.blkIndent >= 4 || i + 3 > a) return !1;
|
|
1305
1330
|
let o = e.src.charCodeAt(i);
|
|
@@ -1322,7 +1347,7 @@ function Ct(e, t, n, r) {
|
|
|
1322
1347
|
}
|
|
1323
1348
|
//#endregion
|
|
1324
1349
|
//#region src/rules_block/blockquote.ts
|
|
1325
|
-
function
|
|
1350
|
+
function Tt(e, t, n, r) {
|
|
1326
1351
|
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t], o = e.lineMax;
|
|
1327
1352
|
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(i) !== 62) return !1;
|
|
1328
1353
|
if (r) return !0;
|
|
@@ -1338,7 +1363,7 @@ function wt(e, t, n, r) {
|
|
|
1338
1363
|
let o = t;
|
|
1339
1364
|
for (s.push(e.bMarks[m]), e.bMarks[m] = i; i < a;) {
|
|
1340
1365
|
let t = e.src.charCodeAt(i);
|
|
1341
|
-
if (
|
|
1366
|
+
if (N(t)) t === 9 ? o += 4 - (o + e.bsCount[m] + +!!r) % 4 : o++;
|
|
1342
1367
|
else break;
|
|
1343
1368
|
i++;
|
|
1344
1369
|
}
|
|
@@ -1370,7 +1395,7 @@ function wt(e, t, n, r) {
|
|
|
1370
1395
|
}
|
|
1371
1396
|
//#endregion
|
|
1372
1397
|
//#region src/rules_block/hr.ts
|
|
1373
|
-
function
|
|
1398
|
+
function Et(e, t, n, r) {
|
|
1374
1399
|
let i = e.eMarks[t];
|
|
1375
1400
|
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
1376
1401
|
let a = e.bMarks[t] + e.tShift[t], o = e.src.charCodeAt(a++);
|
|
@@ -1378,7 +1403,7 @@ function Tt(e, t, n, r) {
|
|
|
1378
1403
|
let s = 1;
|
|
1379
1404
|
for (; a < i;) {
|
|
1380
1405
|
let t = e.src.charCodeAt(a++);
|
|
1381
|
-
if (t !== o && !
|
|
1406
|
+
if (t !== o && !N(t)) return !1;
|
|
1382
1407
|
t === o && s++;
|
|
1383
1408
|
}
|
|
1384
1409
|
if (s < 3) return !1;
|
|
@@ -1389,11 +1414,11 @@ function Tt(e, t, n, r) {
|
|
|
1389
1414
|
}
|
|
1390
1415
|
//#endregion
|
|
1391
1416
|
//#region src/rules_block/list.ts
|
|
1392
|
-
function
|
|
1417
|
+
function Dt(e, t) {
|
|
1393
1418
|
let n = e.eMarks[t], r = e.bMarks[t] + e.tShift[t], i = e.src.charCodeAt(r++);
|
|
1394
|
-
return i !== 42 && i !== 45 && i !== 43 || r < n && !
|
|
1419
|
+
return i !== 42 && i !== 45 && i !== 43 || r < n && !N(e.src.charCodeAt(r)) ? -1 : r;
|
|
1395
1420
|
}
|
|
1396
|
-
function
|
|
1421
|
+
function Ot(e, t) {
|
|
1397
1422
|
let n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t], i = n;
|
|
1398
1423
|
if (i + 1 >= r) return -1;
|
|
1399
1424
|
let a = e.src.charCodeAt(i++);
|
|
@@ -1407,21 +1432,21 @@ function Dt(e, t) {
|
|
|
1407
1432
|
if (a === 41 || a === 46) break;
|
|
1408
1433
|
return -1;
|
|
1409
1434
|
}
|
|
1410
|
-
return i < r && (a = e.src.charCodeAt(i), !
|
|
1435
|
+
return i < r && (a = e.src.charCodeAt(i), !N(a)) ? -1 : i;
|
|
1411
1436
|
}
|
|
1412
|
-
function
|
|
1437
|
+
function kt(e, t) {
|
|
1413
1438
|
let n = e.level + 2;
|
|
1414
1439
|
for (let r = t + 2, i = e.tokens.length - 2; r < i; r++) e.tokens[r].level === n && e.tokens[r].type === "paragraph_open" && (e.tokens[r + 2].hidden = !0, e.tokens[r].hidden = !0, r += 2);
|
|
1415
1440
|
}
|
|
1416
|
-
function
|
|
1441
|
+
function At(e, t, n, r) {
|
|
1417
1442
|
let i, a, o, s, c = t, l = !0;
|
|
1418
1443
|
if (e.sCount[c] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[c] - e.listIndent >= 4 && e.sCount[c] < e.blkIndent) return !1;
|
|
1419
1444
|
let u = !1;
|
|
1420
1445
|
r && e.parentType === "paragraph" && e.sCount[c] >= e.blkIndent && (u = !0);
|
|
1421
1446
|
let d, f, p;
|
|
1422
|
-
if ((p =
|
|
1447
|
+
if ((p = Ot(e, c)) >= 0) {
|
|
1423
1448
|
if (d = !0, o = e.bMarks[c] + e.tShift[c], f = Number(e.src.slice(o, p - 1)), u && f !== 1) return !1;
|
|
1424
|
-
} else if ((p =
|
|
1449
|
+
} else if ((p = Dt(e, c)) >= 0) d = !1;
|
|
1425
1450
|
else return !1;
|
|
1426
1451
|
if (u && e.skipSpaces(p) >= e.eMarks[c]) return !1;
|
|
1427
1452
|
if (r) return !0;
|
|
@@ -1455,16 +1480,16 @@ function kt(e, t, n, r) {
|
|
|
1455
1480
|
}
|
|
1456
1481
|
if (x) break;
|
|
1457
1482
|
if (d) {
|
|
1458
|
-
if (p =
|
|
1483
|
+
if (p = Ot(e, c), p < 0) break;
|
|
1459
1484
|
o = e.bMarks[c] + e.tShift[c];
|
|
1460
|
-
} else if (p =
|
|
1485
|
+
} else if (p = Dt(e, c), p < 0) break;
|
|
1461
1486
|
if (m !== e.src.charCodeAt(p - 1)) break;
|
|
1462
1487
|
}
|
|
1463
|
-
return s = d ? e.push("ordered_list_close", "ol", -1) : e.push("bullet_list_close", "ul", -1), s.markup = String.fromCharCode(m), g[1] = c, e.line = c, e.parentType = y, l &&
|
|
1488
|
+
return s = d ? e.push("ordered_list_close", "ol", -1) : e.push("bullet_list_close", "ul", -1), s.markup = String.fromCharCode(m), g[1] = c, e.line = c, e.parentType = y, l && kt(e, h), !0;
|
|
1464
1489
|
}
|
|
1465
1490
|
//#endregion
|
|
1466
1491
|
//#region src/rules_block/reference.ts
|
|
1467
|
-
function
|
|
1492
|
+
function jt(e, t, n, r) {
|
|
1468
1493
|
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t], o = t + 1;
|
|
1469
1494
|
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(i) !== 91) return !1;
|
|
1470
1495
|
function s(t) {
|
|
@@ -1508,7 +1533,7 @@ function At(e, t, n, r) {
|
|
|
1508
1533
|
if (e === 10) {
|
|
1509
1534
|
let e = s(o);
|
|
1510
1535
|
e !== null && (c += e, a = c.length, o++);
|
|
1511
|
-
} else if (!
|
|
1536
|
+
} else if (!N(e)) break;
|
|
1512
1537
|
}
|
|
1513
1538
|
let u = e.md.helpers.parseLinkDestination(c, i, a);
|
|
1514
1539
|
if (!u.ok) return !1;
|
|
@@ -1521,7 +1546,7 @@ function At(e, t, n, r) {
|
|
|
1521
1546
|
if (e === 10) {
|
|
1522
1547
|
let e = s(o);
|
|
1523
1548
|
e !== null && (c += e, a = c.length, o++);
|
|
1524
|
-
} else if (!
|
|
1549
|
+
} else if (!N(e)) break;
|
|
1525
1550
|
}
|
|
1526
1551
|
let h = e.md.helpers.parseLinkTitle(c, i, a);
|
|
1527
1552
|
for (; h.can_continue;) {
|
|
@@ -1530,10 +1555,10 @@ function At(e, t, n, r) {
|
|
|
1530
1555
|
c += t, i = a, a = c.length, o++, h = e.md.helpers.parseLinkTitle(c, i, a, h);
|
|
1531
1556
|
}
|
|
1532
1557
|
let g;
|
|
1533
|
-
for (i < a && m !== i && h.ok ? (g = h.str, i = h.pos) : (g = "", i = f, o = p); i < a &&
|
|
1534
|
-
if (i < a && c.charCodeAt(i) !== 10 && g) for (g = "", i = f, o = p; i < a &&
|
|
1558
|
+
for (i < a && m !== i && h.ok ? (g = h.str, i = h.pos) : (g = "", i = f, o = p); i < a && N(c.charCodeAt(i));) i++;
|
|
1559
|
+
if (i < a && c.charCodeAt(i) !== 10 && g) for (g = "", i = f, o = p; i < a && N(c.charCodeAt(i));) i++;
|
|
1535
1560
|
if (i < a && c.charCodeAt(i) !== 10) return !1;
|
|
1536
|
-
let _ =
|
|
1561
|
+
let _ = L(c.slice(1, l));
|
|
1537
1562
|
if (!_) return !1;
|
|
1538
1563
|
/* istanbul ignore if */
|
|
1539
1564
|
if (r) return !0;
|
|
@@ -1548,7 +1573,7 @@ function At(e, t, n, r) {
|
|
|
1548
1573
|
}
|
|
1549
1574
|
//#endregion
|
|
1550
1575
|
//#region src/common/html_blocks.ts
|
|
1551
|
-
var
|
|
1576
|
+
var Mt = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), Nt = "<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>", Pt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Ft = RegExp(`^(?:${Nt}|${Pt}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`), It = RegExp(`^(?:${Nt}|${Pt})`), G = [
|
|
1552
1577
|
[
|
|
1553
1578
|
/^<(script|pre|style|textarea)(?=(\s|>|$))/i,
|
|
1554
1579
|
/<\/(script|pre|style|textarea)>/i,
|
|
@@ -1575,26 +1600,26 @@ var jt = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.ca
|
|
|
1575
1600
|
!0
|
|
1576
1601
|
],
|
|
1577
1602
|
[
|
|
1578
|
-
RegExp(`^</?(${
|
|
1603
|
+
RegExp(`^</?(${Mt.join("|")})(?=(\\s|/?>|$))`, "i"),
|
|
1579
1604
|
/^$/,
|
|
1580
1605
|
!0
|
|
1581
1606
|
],
|
|
1582
1607
|
[
|
|
1583
|
-
RegExp(`${
|
|
1608
|
+
RegExp(`${It.source}\\s*$`),
|
|
1584
1609
|
/^$/,
|
|
1585
1610
|
!1
|
|
1586
1611
|
]
|
|
1587
1612
|
];
|
|
1588
|
-
function
|
|
1613
|
+
function Lt(e, t, n, r) {
|
|
1589
1614
|
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
1590
1615
|
if (e.sCount[t] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(i) !== 60) return !1;
|
|
1591
1616
|
let o = e.src.slice(i, a), s = 0;
|
|
1592
|
-
for (; s <
|
|
1593
|
-
if (s ===
|
|
1594
|
-
if (r) return
|
|
1595
|
-
let c = t + 1, l =
|
|
1596
|
-
if (!
|
|
1597
|
-
for (; c < n && !(e.sCount[c] < e.blkIndent && (l || !e.isEmpty(c))); c++) if (i = e.bMarks[c] + e.tShift[c], a = e.eMarks[c], o = e.src.slice(i, a),
|
|
1617
|
+
for (; s < G.length && !G[s][0].test(o); s++);
|
|
1618
|
+
if (s === G.length) return !1;
|
|
1619
|
+
if (r) return G[s][2];
|
|
1620
|
+
let c = t + 1, l = G[s][1].test("");
|
|
1621
|
+
if (!G[s][1].test(o)) {
|
|
1622
|
+
for (; c < n && !(e.sCount[c] < e.blkIndent && (l || !e.isEmpty(c))); c++) if (i = e.bMarks[c] + e.tShift[c], a = e.eMarks[c], o = e.src.slice(i, a), G[s][1].test(o)) {
|
|
1598
1623
|
o.length !== 0 && c++;
|
|
1599
1624
|
break;
|
|
1600
1625
|
}
|
|
@@ -1605,28 +1630,28 @@ function It(e, t, n, r) {
|
|
|
1605
1630
|
}
|
|
1606
1631
|
//#endregion
|
|
1607
1632
|
//#region src/rules_block/heading.ts
|
|
1608
|
-
function
|
|
1633
|
+
function Rt(e, t, n, r) {
|
|
1609
1634
|
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
1610
1635
|
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
1611
1636
|
let o = e.src.charCodeAt(i);
|
|
1612
1637
|
if (o !== 35 || i >= a) return !1;
|
|
1613
1638
|
let s = 1;
|
|
1614
1639
|
for (o = e.src.charCodeAt(++i); o === 35 && i < a && s <= 6;) s++, o = e.src.charCodeAt(++i);
|
|
1615
|
-
if (s > 6 || i < a && !
|
|
1640
|
+
if (s > 6 || i < a && !N(o)) return !1;
|
|
1616
1641
|
if (r) return !0;
|
|
1617
1642
|
a = e.skipSpacesBack(a, i);
|
|
1618
1643
|
let c = e.skipCharsBack(a, 35, i);
|
|
1619
|
-
c > i &&
|
|
1644
|
+
c > i && N(e.src.charCodeAt(c - 1)) && (a = c), e.line = t + 1;
|
|
1620
1645
|
let l = e.push("heading_open", `h${s}`, 1);
|
|
1621
1646
|
l.markup = "########".slice(0, s), l.map = [t, e.line];
|
|
1622
1647
|
let u = e.push("inline", "", 0);
|
|
1623
|
-
u.content =
|
|
1648
|
+
u.content = R(e.src.slice(i, a)), u.map = [t, e.line], u.children = [];
|
|
1624
1649
|
let d = e.push("heading_close", `h${s}`, -1);
|
|
1625
1650
|
return d.markup = "########".slice(0, s), !0;
|
|
1626
1651
|
}
|
|
1627
1652
|
//#endregion
|
|
1628
1653
|
//#region src/rules_block/lheading.ts
|
|
1629
|
-
function
|
|
1654
|
+
function zt(e, t, n) {
|
|
1630
1655
|
let r = e.md.block.ruler.getRules("paragraph");
|
|
1631
1656
|
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
1632
1657
|
let i = e.parentType;
|
|
@@ -1650,7 +1675,7 @@ function Rt(e, t, n) {
|
|
|
1650
1675
|
if (t) break;
|
|
1651
1676
|
}
|
|
1652
1677
|
if (!a) return e.parentType = i, !1;
|
|
1653
|
-
let c =
|
|
1678
|
+
let c = R(e.getLines(t, s, e.blkIndent, !1));
|
|
1654
1679
|
e.line = s + 1;
|
|
1655
1680
|
let l = e.push("heading_open", `h${a}`, 1);
|
|
1656
1681
|
l.markup = String.fromCharCode(o), l.map = [t, e.line];
|
|
@@ -1661,7 +1686,7 @@ function Rt(e, t, n) {
|
|
|
1661
1686
|
}
|
|
1662
1687
|
//#endregion
|
|
1663
1688
|
//#region src/rules_block/paragraph.ts
|
|
1664
|
-
function
|
|
1689
|
+
function Bt(e, t, n) {
|
|
1665
1690
|
let r = e.md.block.ruler.getRules("paragraph"), i = e.parentType, a = t + 1;
|
|
1666
1691
|
for (e.parentType = "paragraph"; a < n && !e.isEmpty(a); a++) {
|
|
1667
1692
|
if (e.sCount[a] - e.blkIndent > 3 || e.sCount[a] < 0) continue;
|
|
@@ -1672,7 +1697,7 @@ function zt(e, t, n) {
|
|
|
1672
1697
|
}
|
|
1673
1698
|
if (t) break;
|
|
1674
1699
|
}
|
|
1675
|
-
let o =
|
|
1700
|
+
let o = R(e.getLines(t, a, e.blkIndent, !1));
|
|
1676
1701
|
e.line = a;
|
|
1677
1702
|
let s = e.push("paragraph_open", "p", 1);
|
|
1678
1703
|
s.map = [t, e.line];
|
|
@@ -1681,16 +1706,16 @@ function zt(e, t, n) {
|
|
|
1681
1706
|
}
|
|
1682
1707
|
//#endregion
|
|
1683
1708
|
//#region src/parser_block.ts
|
|
1684
|
-
var
|
|
1709
|
+
var K = [
|
|
1685
1710
|
[
|
|
1686
1711
|
"table",
|
|
1687
|
-
|
|
1712
|
+
St,
|
|
1688
1713
|
["paragraph", "reference"]
|
|
1689
1714
|
],
|
|
1690
|
-
["code",
|
|
1715
|
+
["code", Ct],
|
|
1691
1716
|
[
|
|
1692
1717
|
"fence",
|
|
1693
|
-
|
|
1718
|
+
wt,
|
|
1694
1719
|
[
|
|
1695
1720
|
"paragraph",
|
|
1696
1721
|
"reference",
|
|
@@ -1700,7 +1725,7 @@ var G = [
|
|
|
1700
1725
|
],
|
|
1701
1726
|
[
|
|
1702
1727
|
"blockquote",
|
|
1703
|
-
|
|
1728
|
+
Tt,
|
|
1704
1729
|
[
|
|
1705
1730
|
"paragraph",
|
|
1706
1731
|
"reference",
|
|
@@ -1710,7 +1735,7 @@ var G = [
|
|
|
1710
1735
|
],
|
|
1711
1736
|
[
|
|
1712
1737
|
"hr",
|
|
1713
|
-
|
|
1738
|
+
Et,
|
|
1714
1739
|
[
|
|
1715
1740
|
"paragraph",
|
|
1716
1741
|
"reference",
|
|
@@ -1720,17 +1745,17 @@ var G = [
|
|
|
1720
1745
|
],
|
|
1721
1746
|
[
|
|
1722
1747
|
"list",
|
|
1723
|
-
|
|
1748
|
+
At,
|
|
1724
1749
|
[
|
|
1725
1750
|
"paragraph",
|
|
1726
1751
|
"reference",
|
|
1727
1752
|
"blockquote"
|
|
1728
1753
|
]
|
|
1729
1754
|
],
|
|
1730
|
-
["reference",
|
|
1755
|
+
["reference", jt],
|
|
1731
1756
|
[
|
|
1732
1757
|
"html_block",
|
|
1733
|
-
|
|
1758
|
+
Lt,
|
|
1734
1759
|
[
|
|
1735
1760
|
"paragraph",
|
|
1736
1761
|
"reference",
|
|
@@ -1739,19 +1764,19 @@ var G = [
|
|
|
1739
1764
|
],
|
|
1740
1765
|
[
|
|
1741
1766
|
"heading",
|
|
1742
|
-
|
|
1767
|
+
Rt,
|
|
1743
1768
|
[
|
|
1744
1769
|
"paragraph",
|
|
1745
1770
|
"reference",
|
|
1746
1771
|
"blockquote"
|
|
1747
1772
|
]
|
|
1748
1773
|
],
|
|
1749
|
-
["lheading",
|
|
1750
|
-
["paragraph",
|
|
1751
|
-
],
|
|
1774
|
+
["lheading", zt],
|
|
1775
|
+
["paragraph", Bt]
|
|
1776
|
+
], Vt = class {
|
|
1752
1777
|
constructor() {
|
|
1753
|
-
T(this, "ruler", new
|
|
1754
|
-
for (let e = 0; e <
|
|
1778
|
+
T(this, "ruler", new B()), T(this, "State", yt);
|
|
1779
|
+
for (let e = 0; e < K.length; e++) this.ruler.push(K[e][0], K[e][1], { alt: (K[e][2] || []).slice() });
|
|
1755
1780
|
}
|
|
1756
1781
|
tokenize(e, t, n) {
|
|
1757
1782
|
let r = this.ruler.getRules(""), i = r.length, a = e.md.options.maxNesting, o = t, s = !1;
|
|
@@ -1774,17 +1799,17 @@ var G = [
|
|
|
1774
1799
|
let i = new this.State(e, t, n, r);
|
|
1775
1800
|
this.tokenize(i, i.line, i.lineMax);
|
|
1776
1801
|
}
|
|
1777
|
-
},
|
|
1802
|
+
}, Ht = class {
|
|
1778
1803
|
constructor(e, t, n, r) {
|
|
1779
|
-
T(this, "pos", 0), T(this, "level", 0), T(this, "pending", ""), T(this, "pendingLevel", 0), T(this, "cache", {}), T(this, "backticks", {}), T(this, "backticksScanned", !1), T(this, "linkLevel", 0), T(this, "delimiters", []), T(this, "_prev_delimiters", []), T(this, "Token",
|
|
1804
|
+
T(this, "pos", 0), T(this, "level", 0), T(this, "pending", ""), T(this, "pendingLevel", 0), T(this, "cache", {}), T(this, "backticks", {}), T(this, "backticksScanned", !1), T(this, "linkLevel", 0), T(this, "delimiters", []), T(this, "_prev_delimiters", []), T(this, "Token", z), this.src = e, this.env = n, this.md = t, this.tokens = r, this.tokens_meta = Array(r.length), this.posMax = this.src.length;
|
|
1780
1805
|
}
|
|
1781
1806
|
pushPending() {
|
|
1782
|
-
let e = new
|
|
1807
|
+
let e = new z("text", "", 0);
|
|
1783
1808
|
return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
|
|
1784
1809
|
}
|
|
1785
1810
|
push(e, t, n) {
|
|
1786
1811
|
this.pending && this.pushPending();
|
|
1787
|
-
let r = new
|
|
1812
|
+
let r = new z(e, t, n), i;
|
|
1788
1813
|
return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(i), r;
|
|
1789
1814
|
}
|
|
1790
1815
|
scanDelims(e, t) {
|
|
@@ -1802,7 +1827,7 @@ var G = [
|
|
|
1802
1827
|
let e = this.src.charCodeAt(a + 1);
|
|
1803
1828
|
s = (e & 64512) == 56320 ? 65536 + (s - 55296 << 10) + (e - 56320) : 65533;
|
|
1804
1829
|
} else (s & 64512) == 56320 && (s = 65533);
|
|
1805
|
-
let c =
|
|
1830
|
+
let c = I(i) || F(i), l = I(s) || F(s), u = P(i), d = P(s), f = !d && (!l || u || c), p = !u && (!c || d || l);
|
|
1806
1831
|
return {
|
|
1807
1832
|
can_open: f && (t || !p || c),
|
|
1808
1833
|
can_close: p && (t || !f || l),
|
|
@@ -1812,7 +1837,7 @@ var G = [
|
|
|
1812
1837
|
};
|
|
1813
1838
|
//#endregion
|
|
1814
1839
|
//#region src/rules_inline/text.ts
|
|
1815
|
-
function
|
|
1840
|
+
function Ut(e) {
|
|
1816
1841
|
switch (e) {
|
|
1817
1842
|
case 10:
|
|
1818
1843
|
case 33:
|
|
@@ -1840,43 +1865,49 @@ function Ht(e) {
|
|
|
1840
1865
|
default: return !1;
|
|
1841
1866
|
}
|
|
1842
1867
|
}
|
|
1843
|
-
function
|
|
1868
|
+
function Wt(e, t) {
|
|
1844
1869
|
let n = e.pos;
|
|
1845
|
-
for (; n < e.posMax && !
|
|
1870
|
+
for (; n < e.posMax && !Ut(e.src.charCodeAt(n));) n++;
|
|
1846
1871
|
return n !== e.pos && (t || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0);
|
|
1847
1872
|
}
|
|
1848
1873
|
//#endregion
|
|
1849
1874
|
//#region src/rules_inline/linkify.ts
|
|
1850
|
-
|
|
1851
|
-
|
|
1875
|
+
function Gt(e) {
|
|
1876
|
+
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
1877
|
+
}
|
|
1878
|
+
function Kt(e) {
|
|
1879
|
+
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 43 || e === 45 || e === 46;
|
|
1880
|
+
}
|
|
1881
|
+
function qt(e, t) {
|
|
1852
1882
|
if (!e.md.options.linkify || e.linkLevel > 0) return !1;
|
|
1853
1883
|
let n = e.pos, r = e.posMax;
|
|
1854
1884
|
if (n + 3 > r || e.src.charCodeAt(n) !== 58 || e.src.charCodeAt(n + 1) !== 47 || e.src.charCodeAt(n + 2) !== 47) return !1;
|
|
1855
|
-
let i = e.pending.
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1885
|
+
let i = n - Math.min(10, e.pending.length, n), a = n;
|
|
1886
|
+
for (; a > i && Kt(e.src.charCodeAt(a - 1));) a--;
|
|
1887
|
+
if (a === n || !Gt(e.src.charCodeAt(a))) return !1;
|
|
1888
|
+
let o = n - a, s = e.md.linkify.matchAtStart(e.src.slice(a));
|
|
1889
|
+
if (!s) return !1;
|
|
1890
|
+
let c = s.url;
|
|
1891
|
+
if (c.length <= o) return !1;
|
|
1892
|
+
let l = c.length;
|
|
1893
|
+
for (; l > 0 && c.charCodeAt(l - 1) === 42;) l--;
|
|
1894
|
+
l !== c.length && (c = c.slice(0, l));
|
|
1895
|
+
let u = e.md.normalizeLink(c);
|
|
1896
|
+
if (!e.md.validateLink(u)) return !1;
|
|
1866
1897
|
if (!t) {
|
|
1867
|
-
e.pending = e.pending.slice(0, -
|
|
1898
|
+
e.pending = e.pending.slice(0, -o);
|
|
1868
1899
|
let t = e.push("link_open", "a", 1);
|
|
1869
|
-
t.attrs = [["href",
|
|
1900
|
+
t.attrs = [["href", u]], t.markup = "linkify", t.info = "auto";
|
|
1870
1901
|
let n = e.push("text", "", 0);
|
|
1871
|
-
n.content = e.md.normalizeLinkText(
|
|
1902
|
+
n.content = e.md.normalizeLinkText(c);
|
|
1872
1903
|
let r = e.push("link_close", "a", -1);
|
|
1873
1904
|
r.markup = "linkify", r.info = "auto";
|
|
1874
1905
|
}
|
|
1875
|
-
return e.pos +=
|
|
1906
|
+
return e.pos += c.length - o, !0;
|
|
1876
1907
|
}
|
|
1877
1908
|
//#endregion
|
|
1878
1909
|
//#region src/rules_inline/newline.ts
|
|
1879
|
-
function
|
|
1910
|
+
function Jt(e, t) {
|
|
1880
1911
|
let n = e.pos;
|
|
1881
1912
|
if (e.src.charCodeAt(n) !== 10) return !1;
|
|
1882
1913
|
let r = e.pending.length - 1, i = e.posMax;
|
|
@@ -1886,22 +1917,22 @@ function Kt(e, t) {
|
|
|
1886
1917
|
e.pending = e.pending.slice(0, t), e.push("hardbreak", "br", 0);
|
|
1887
1918
|
} else e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
|
|
1888
1919
|
else e.push("softbreak", "br", 0);
|
|
1889
|
-
for (n++; n < i &&
|
|
1920
|
+
for (n++; n < i && N(e.src.charCodeAt(n));) n++;
|
|
1890
1921
|
return e.pos = n, !0;
|
|
1891
1922
|
}
|
|
1892
1923
|
//#endregion
|
|
1893
1924
|
//#region src/rules_inline/escape.ts
|
|
1894
|
-
var
|
|
1895
|
-
for (let e = 0; e < 256; e++)
|
|
1925
|
+
var q = [];
|
|
1926
|
+
for (let e = 0; e < 256; e++) q.push(0);
|
|
1896
1927
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
|
|
1897
|
-
|
|
1928
|
+
q[e.charCodeAt(0)] = 1;
|
|
1898
1929
|
});
|
|
1899
|
-
function
|
|
1930
|
+
function Yt(e, t) {
|
|
1900
1931
|
let n = e.pos, r = e.posMax;
|
|
1901
1932
|
if (e.src.charCodeAt(n) !== 92 || (n++, n >= r)) return !1;
|
|
1902
1933
|
let i = e.src.charCodeAt(n);
|
|
1903
1934
|
if (i === 10) {
|
|
1904
|
-
for (t || e.push("hardbreak", "br", 0), n++; n < r && (i = e.src.charCodeAt(n),
|
|
1935
|
+
for (t || e.push("hardbreak", "br", 0), n++; n < r && (i = e.src.charCodeAt(n), N(i));) n++;
|
|
1905
1936
|
return e.pos = n, !0;
|
|
1906
1937
|
}
|
|
1907
1938
|
if (i === 32) {
|
|
@@ -1919,39 +1950,49 @@ function qt(e, t) {
|
|
|
1919
1950
|
let o = "\\" + a;
|
|
1920
1951
|
if (!t) {
|
|
1921
1952
|
let t = e.push("text_special", "", 0);
|
|
1922
|
-
t.content = i < 256 &&
|
|
1953
|
+
t.content = i < 256 && q[i] !== 0 ? a : o, t.markup = o, t.info = "escape";
|
|
1923
1954
|
}
|
|
1924
1955
|
return e.pos = n + 1, !0;
|
|
1925
1956
|
}
|
|
1926
1957
|
//#endregion
|
|
1927
1958
|
//#region src/rules_inline/backticks.ts
|
|
1928
|
-
function
|
|
1929
|
-
let n =
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1959
|
+
function Xt(e) {
|
|
1960
|
+
let t = {}, n = 0;
|
|
1961
|
+
for (; (n = e.indexOf("`", n)) !== -1;) {
|
|
1962
|
+
let r = n;
|
|
1963
|
+
for (; e.charCodeAt(++n) === 96;);
|
|
1964
|
+
t[n - r] = r;
|
|
1965
|
+
}
|
|
1966
|
+
return t;
|
|
1967
|
+
}
|
|
1968
|
+
function Zt(e, t) {
|
|
1969
|
+
var n;
|
|
1970
|
+
let r = e.pos;
|
|
1971
|
+
if (e.src.charCodeAt(r) !== 96) return !1;
|
|
1972
|
+
let i = e.posMax, a = r + 1;
|
|
1973
|
+
for (; a < i && e.src.charCodeAt(a) === 96;) a++;
|
|
1974
|
+
let o = e.src.slice(r, a), s = o.length;
|
|
1975
|
+
if (e.backticksScanned || (e.backticks = Xt(e.src), e.backticksScanned = !0), ((n = e.backticks[s]) == null ? -1 : n) >= a) {
|
|
1976
|
+
let n = a, r;
|
|
1977
|
+
for (; (r = e.src.indexOf("`", n)) !== -1 && r < i;) {
|
|
1978
|
+
for (n = r + 1; e.src.charCodeAt(n) === 96;) n++;
|
|
1979
|
+
if (n > i) break;
|
|
1980
|
+
if (n - r === s) {
|
|
1981
|
+
if (!t) {
|
|
1982
|
+
let t = e.push("code_inline", "code", 0);
|
|
1983
|
+
t.markup = o;
|
|
1984
|
+
let n = e.src.slice(a, r).replace(/\n/g, " ");
|
|
1985
|
+
n.startsWith(" ") && n.endsWith(" ") && /[^ ]/.test(n) && (n = n.slice(1, -1)), t.content = n;
|
|
1986
|
+
}
|
|
1987
|
+
return e.pos = n, !0;
|
|
1945
1988
|
}
|
|
1946
|
-
return e.pos = s, !0;
|
|
1947
1989
|
}
|
|
1948
|
-
e.backticks[r] = c;
|
|
1949
1990
|
}
|
|
1950
|
-
return
|
|
1991
|
+
return t || (e.pending += o), e.pos = a, !0;
|
|
1951
1992
|
}
|
|
1952
1993
|
//#endregion
|
|
1953
1994
|
//#region src/rules_inline/strikethrough.ts
|
|
1954
|
-
function
|
|
1995
|
+
function Qt(e, t) {
|
|
1955
1996
|
let n = e.pos, r = e.src.charCodeAt(n);
|
|
1956
1997
|
if (t || r !== 126) return !1;
|
|
1957
1998
|
let i = e.scanDelims(e.pos, !0), a = i.length, o = String.fromCharCode(r);
|
|
@@ -1968,7 +2009,7 @@ function Yt(e, t) {
|
|
|
1968
2009
|
});
|
|
1969
2010
|
return e.pos += i.length, !0;
|
|
1970
2011
|
}
|
|
1971
|
-
function
|
|
2012
|
+
function $t(e, t) {
|
|
1972
2013
|
let n, r = [], i = t.length;
|
|
1973
2014
|
for (let a = 0; a < i; a++) {
|
|
1974
2015
|
let i = t[a];
|
|
@@ -1982,22 +2023,22 @@ function Xt(e, t) {
|
|
|
1982
2023
|
i--, t !== i && (n = e.tokens[i], e.tokens[i] = e.tokens[t], e.tokens[t] = n);
|
|
1983
2024
|
}
|
|
1984
2025
|
}
|
|
1985
|
-
function
|
|
2026
|
+
function en(e) {
|
|
1986
2027
|
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
1987
|
-
|
|
2028
|
+
$t(e, e.delimiters);
|
|
1988
2029
|
for (let i = 0; i < n; i++) {
|
|
1989
2030
|
var r;
|
|
1990
2031
|
let n = (r = t[i]) == null ? void 0 : r.delimiters;
|
|
1991
|
-
n &&
|
|
2032
|
+
n && $t(e, n);
|
|
1992
2033
|
}
|
|
1993
2034
|
}
|
|
1994
|
-
var
|
|
1995
|
-
tokenize:
|
|
1996
|
-
postProcess:
|
|
2035
|
+
var tn = {
|
|
2036
|
+
tokenize: Qt,
|
|
2037
|
+
postProcess: en
|
|
1997
2038
|
};
|
|
1998
2039
|
//#endregion
|
|
1999
2040
|
//#region src/rules_inline/emphasis.ts
|
|
2000
|
-
function
|
|
2041
|
+
function nn(e, t) {
|
|
2001
2042
|
let n = e.pos, r = e.src.charCodeAt(n);
|
|
2002
2043
|
if (t || r !== 95 && r !== 42) return !1;
|
|
2003
2044
|
let i = e.scanDelims(e.pos, r === 42);
|
|
@@ -2014,7 +2055,7 @@ function $t(e, t) {
|
|
|
2014
2055
|
}
|
|
2015
2056
|
return e.pos += i.length, !0;
|
|
2016
2057
|
}
|
|
2017
|
-
function
|
|
2058
|
+
function rn(e, t) {
|
|
2018
2059
|
let n = t.length;
|
|
2019
2060
|
for (let r = n - 1; r >= 0; r--) {
|
|
2020
2061
|
let n = t[r];
|
|
@@ -2025,39 +2066,39 @@ function en(e, t) {
|
|
|
2025
2066
|
c.type = a ? "strong_close" : "em_close", c.tag = a ? "strong" : "em", c.nesting = -1, c.markup = a ? o + o : o, c.content = "", a && (e.tokens[t[r - 1].token].content = "", e.tokens[t[n.end + 1].token].content = "", r--);
|
|
2026
2067
|
}
|
|
2027
2068
|
}
|
|
2028
|
-
function
|
|
2069
|
+
function an(e) {
|
|
2029
2070
|
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
2030
|
-
|
|
2071
|
+
rn(e, e.delimiters);
|
|
2031
2072
|
for (let i = 0; i < n; i++) {
|
|
2032
2073
|
var r;
|
|
2033
2074
|
let n = (r = t[i]) == null ? void 0 : r.delimiters;
|
|
2034
|
-
n &&
|
|
2075
|
+
n && rn(e, n);
|
|
2035
2076
|
}
|
|
2036
2077
|
}
|
|
2037
|
-
var
|
|
2038
|
-
tokenize:
|
|
2039
|
-
postProcess:
|
|
2078
|
+
var on = {
|
|
2079
|
+
tokenize: nn,
|
|
2080
|
+
postProcess: an
|
|
2040
2081
|
};
|
|
2041
2082
|
//#endregion
|
|
2042
2083
|
//#region src/rules_inline/link.ts
|
|
2043
|
-
function
|
|
2084
|
+
function sn(e, t) {
|
|
2044
2085
|
let n, r, i, a, o = "", s = "", c = e.pos, l = !0;
|
|
2045
2086
|
if (e.src.charCodeAt(e.pos) !== 91) return !1;
|
|
2046
2087
|
let u = e.pos, d = e.posMax, f = e.pos + 1, p = e.md.helpers.parseLinkLabel(e, e.pos, !0);
|
|
2047
2088
|
if (p < 0) return !1;
|
|
2048
2089
|
let m = p + 1;
|
|
2049
2090
|
if (m < d && e.src.charCodeAt(m) === 40) {
|
|
2050
|
-
for (l = !1, m++; m < d && (n = e.src.charCodeAt(m), !(!
|
|
2091
|
+
for (l = !1, m++; m < d && (n = e.src.charCodeAt(m), !(!N(n) && n !== 10)); m++);
|
|
2051
2092
|
if (m >= d) return !1;
|
|
2052
2093
|
if (c = m, i = e.md.helpers.parseLinkDestination(e.src, m, e.posMax), i.ok) {
|
|
2053
|
-
for (o = e.md.normalizeLink(i.str), e.md.validateLink(o) ? m = i.pos : o = "", c = m; m < d && (n = e.src.charCodeAt(m), !(!
|
|
2054
|
-
if (i = e.md.helpers.parseLinkTitle(e.src, m, e.posMax), m < d && c !== m && i.ok) for (s = i.str, m = i.pos; m < d && (n = e.src.charCodeAt(m), !(!
|
|
2094
|
+
for (o = e.md.normalizeLink(i.str), e.md.validateLink(o) ? m = i.pos : o = "", c = m; m < d && (n = e.src.charCodeAt(m), !(!N(n) && n !== 10)); m++);
|
|
2095
|
+
if (i = e.md.helpers.parseLinkTitle(e.src, m, e.posMax), m < d && c !== m && i.ok) for (s = i.str, m = i.pos; m < d && (n = e.src.charCodeAt(m), !(!N(n) && n !== 10)); m++);
|
|
2055
2096
|
}
|
|
2056
2097
|
(m >= d || e.src.charCodeAt(m) !== 41) && (l = !0), m++;
|
|
2057
2098
|
}
|
|
2058
2099
|
if (l) {
|
|
2059
2100
|
if (e.env.references === void 0) return !1;
|
|
2060
|
-
if (m < d && e.src.charCodeAt(m) === 91 ? (c = m + 1, m = e.md.helpers.parseLinkLabel(e, m), m >= 0 ? r = e.src.slice(c, m++) : m = p + 1) : m = p + 1, r || (r = e.src.slice(f, p)), r =
|
|
2101
|
+
if (m < d && e.src.charCodeAt(m) === 91 ? (c = m + 1, m = e.md.helpers.parseLinkLabel(e, m), m >= 0 ? r = e.src.slice(c, m++) : m = p + 1) : m = p + 1, r || (r = e.src.slice(f, p)), r = L(r), a = e.env.references[r], !a) return e.pos = u, !1;
|
|
2061
2102
|
o = a.href, s = a.title;
|
|
2062
2103
|
}
|
|
2063
2104
|
if (!t) {
|
|
@@ -2073,22 +2114,22 @@ function rn(e, t) {
|
|
|
2073
2114
|
}
|
|
2074
2115
|
//#endregion
|
|
2075
2116
|
//#region src/rules_inline/image.ts
|
|
2076
|
-
function
|
|
2117
|
+
function cn(e, t) {
|
|
2077
2118
|
let n, r, i, a, o, s, c, l, u = "", d = e.pos, f = e.posMax;
|
|
2078
2119
|
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91) return !1;
|
|
2079
2120
|
let p = e.pos + 2, m = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1);
|
|
2080
2121
|
if (m < 0) return !1;
|
|
2081
2122
|
if (a = m + 1, a < f && e.src.charCodeAt(a) === 40) {
|
|
2082
|
-
for (a++; a < f && (n = e.src.charCodeAt(a), !(!
|
|
2123
|
+
for (a++; a < f && (n = e.src.charCodeAt(a), !(!N(n) && n !== 10)); a++);
|
|
2083
2124
|
if (a >= f) return !1;
|
|
2084
|
-
for (l = a, s = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), s.ok && (u = e.md.normalizeLink(s.str), e.md.validateLink(u) ? a = s.pos : u = ""), l = a; a < f && (n = e.src.charCodeAt(a), !(!
|
|
2085
|
-
if (s = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < f && l !== a && s.ok) for (c = s.str, a = s.pos; a < f && (n = e.src.charCodeAt(a), !(!
|
|
2125
|
+
for (l = a, s = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), s.ok && (u = e.md.normalizeLink(s.str), e.md.validateLink(u) ? a = s.pos : u = ""), l = a; a < f && (n = e.src.charCodeAt(a), !(!N(n) && n !== 10)); a++);
|
|
2126
|
+
if (s = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < f && l !== a && s.ok) for (c = s.str, a = s.pos; a < f && (n = e.src.charCodeAt(a), !(!N(n) && n !== 10)); a++);
|
|
2086
2127
|
else c = "";
|
|
2087
2128
|
if (a >= f || e.src.charCodeAt(a) !== 41) return e.pos = d, !1;
|
|
2088
2129
|
a++;
|
|
2089
2130
|
} else {
|
|
2090
2131
|
if (e.env.references === void 0) return !1;
|
|
2091
|
-
if (a < f && e.src.charCodeAt(a) === 91 ? (l = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? i = e.src.slice(l, a++) : a = m + 1) : a = m + 1, i || (i = e.src.slice(p, m)), i =
|
|
2132
|
+
if (a < f && e.src.charCodeAt(a) === 91 ? (l = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? i = e.src.slice(l, a++) : a = m + 1) : a = m + 1, i || (i = e.src.slice(p, m)), i = L(i), o = e.env.references[i], !o) return e.pos = d, !1;
|
|
2092
2133
|
u = o.href, c = o.title;
|
|
2093
2134
|
}
|
|
2094
2135
|
if (!t) {
|
|
@@ -2105,8 +2146,8 @@ function an(e, t) {
|
|
|
2105
2146
|
}
|
|
2106
2147
|
//#endregion
|
|
2107
2148
|
//#region src/rules_inline/autolink.ts
|
|
2108
|
-
var
|
|
2109
|
-
function
|
|
2149
|
+
var ln = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, un = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2150
|
+
function dn(e, t) {
|
|
2110
2151
|
let n = e.pos;
|
|
2111
2152
|
if (e.src.charCodeAt(n) !== 60) return !1;
|
|
2112
2153
|
let r = e.pos, i = e.posMax;
|
|
@@ -2117,7 +2158,7 @@ function cn(e, t) {
|
|
|
2117
2158
|
if (t === 62) break;
|
|
2118
2159
|
}
|
|
2119
2160
|
let a = e.src.slice(r + 1, n);
|
|
2120
|
-
if (
|
|
2161
|
+
if (un.test(a)) {
|
|
2121
2162
|
let n = e.md.normalizeLink(a);
|
|
2122
2163
|
if (!e.md.validateLink(n)) return !1;
|
|
2123
2164
|
if (!t) {
|
|
@@ -2130,7 +2171,7 @@ function cn(e, t) {
|
|
|
2130
2171
|
}
|
|
2131
2172
|
return e.pos += a.length + 2, !0;
|
|
2132
2173
|
}
|
|
2133
|
-
if (
|
|
2174
|
+
if (ln.test(a)) {
|
|
2134
2175
|
let n = e.md.normalizeLink(`mailto:${a}`);
|
|
2135
2176
|
if (!e.md.validateLink(n)) return !1;
|
|
2136
2177
|
if (!t) {
|
|
@@ -2147,49 +2188,49 @@ function cn(e, t) {
|
|
|
2147
2188
|
}
|
|
2148
2189
|
//#endregion
|
|
2149
2190
|
//#region src/rules_inline/html_inline.ts
|
|
2150
|
-
function
|
|
2191
|
+
function fn(e) {
|
|
2151
2192
|
return /^<a[>\s]/i.test(e);
|
|
2152
2193
|
}
|
|
2153
|
-
function
|
|
2194
|
+
function pn(e) {
|
|
2154
2195
|
return /^<\/a\s*>/i.test(e);
|
|
2155
2196
|
}
|
|
2156
|
-
function
|
|
2197
|
+
function mn(e) {
|
|
2157
2198
|
let t = e | 32;
|
|
2158
2199
|
return t >= 97 && t <= 122;
|
|
2159
2200
|
}
|
|
2160
|
-
function
|
|
2201
|
+
function hn(e, t) {
|
|
2161
2202
|
if (!e.md.options.html) return !1;
|
|
2162
2203
|
let n = e.posMax, r = e.pos;
|
|
2163
2204
|
if (e.src.charCodeAt(r) !== 60 || r + 2 >= n) return !1;
|
|
2164
2205
|
let i = e.src.charCodeAt(r + 1);
|
|
2165
|
-
if (i !== 33 && i !== 63 && i !== 47 && !
|
|
2166
|
-
let a = e.src.slice(r).match(
|
|
2206
|
+
if (i !== 33 && i !== 63 && i !== 47 && !mn(i)) return !1;
|
|
2207
|
+
let a = e.src.slice(r).match(Ft);
|
|
2167
2208
|
if (!a) return !1;
|
|
2168
2209
|
if (!t) {
|
|
2169
2210
|
let t = e.push("html_inline", "", 0);
|
|
2170
|
-
t.content = a[0],
|
|
2211
|
+
t.content = a[0], fn(t.content) && e.linkLevel++, pn(t.content) && e.linkLevel--;
|
|
2171
2212
|
}
|
|
2172
2213
|
return e.pos += a[0].length, !0;
|
|
2173
2214
|
}
|
|
2174
2215
|
//#endregion
|
|
2175
2216
|
//#region src/rules_inline/entity.ts
|
|
2176
|
-
var
|
|
2177
|
-
function
|
|
2217
|
+
var gn = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, _n = /^&([a-z][a-z0-9]{1,31});/i;
|
|
2218
|
+
function vn(e, t) {
|
|
2178
2219
|
let n = e.pos, r = e.posMax;
|
|
2179
2220
|
if (e.src.charCodeAt(n) !== 38 || n + 1 >= r) return !1;
|
|
2180
2221
|
if (e.src.charCodeAt(n + 1) === 35) {
|
|
2181
|
-
let r = e.src.slice(n).match(
|
|
2222
|
+
let r = e.src.slice(n).match(gn);
|
|
2182
2223
|
if (r) {
|
|
2183
2224
|
if (!t) {
|
|
2184
2225
|
let t = r[1][0].toLowerCase() === "x" ? parseInt(r[1].slice(1), 16) : parseInt(r[1], 10), n = e.push("text_special", "", 0);
|
|
2185
|
-
n.content =
|
|
2226
|
+
n.content = we(t) ? A(t) : A(65533), n.markup = r[0], n.info = "entity";
|
|
2186
2227
|
}
|
|
2187
2228
|
return e.pos += r[0].length, !0;
|
|
2188
2229
|
}
|
|
2189
2230
|
} else {
|
|
2190
|
-
let r = e.src.slice(n).match(
|
|
2231
|
+
let r = e.src.slice(n).match(_n);
|
|
2191
2232
|
if (r) {
|
|
2192
|
-
let n =
|
|
2233
|
+
let n = be(r[0]);
|
|
2193
2234
|
if (n !== r[0]) {
|
|
2194
2235
|
if (!t) {
|
|
2195
2236
|
let t = e.push("text_special", "", 0);
|
|
@@ -2203,7 +2244,7 @@ function hn(e, t) {
|
|
|
2203
2244
|
}
|
|
2204
2245
|
//#endregion
|
|
2205
2246
|
//#region src/rules_inline/balance_pairs.ts
|
|
2206
|
-
function
|
|
2247
|
+
function yn(e) {
|
|
2207
2248
|
let t = {}, n = e.length;
|
|
2208
2249
|
if (!n) return;
|
|
2209
2250
|
let r = 0, i = -2, a = [];
|
|
@@ -2233,47 +2274,47 @@ function gn(e) {
|
|
|
2233
2274
|
l !== -1 && (t[n.marker][(n.open ? 3 : 0) + (n.length || 0) % 3] = l);
|
|
2234
2275
|
}
|
|
2235
2276
|
}
|
|
2236
|
-
function
|
|
2277
|
+
function bn(e) {
|
|
2237
2278
|
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
2238
|
-
|
|
2279
|
+
yn(e.delimiters);
|
|
2239
2280
|
for (let e = 0; e < n; e++) {
|
|
2240
2281
|
var r;
|
|
2241
2282
|
let n = (r = t[e]) == null ? void 0 : r.delimiters;
|
|
2242
|
-
n &&
|
|
2283
|
+
n && yn(n);
|
|
2243
2284
|
}
|
|
2244
2285
|
}
|
|
2245
2286
|
//#endregion
|
|
2246
2287
|
//#region src/rules_inline/fragments_join.ts
|
|
2247
|
-
function
|
|
2288
|
+
function xn(e) {
|
|
2248
2289
|
let t, n, r = 0, i = e.tokens, a = e.tokens.length;
|
|
2249
2290
|
for (t = n = 0; t < a; t++) i[t].nesting < 0 && r--, i[t].level = r, i[t].nesting > 0 && r++, i[t].type === "text" && t + 1 < a && i[t + 1].type === "text" ? i[t + 1].content = i[t].content + i[t + 1].content : (t !== n && (i[n] = i[t]), n++);
|
|
2250
2291
|
t !== n && (i.length = n);
|
|
2251
2292
|
}
|
|
2252
2293
|
//#endregion
|
|
2253
2294
|
//#region src/parser_inline.ts
|
|
2254
|
-
var
|
|
2255
|
-
["text",
|
|
2256
|
-
["linkify",
|
|
2257
|
-
["newline",
|
|
2258
|
-
["escape",
|
|
2259
|
-
["backticks",
|
|
2260
|
-
["strikethrough",
|
|
2261
|
-
["emphasis",
|
|
2262
|
-
["link",
|
|
2263
|
-
["image",
|
|
2264
|
-
["autolink",
|
|
2265
|
-
["html_inline",
|
|
2266
|
-
["entity",
|
|
2267
|
-
],
|
|
2268
|
-
["balance_pairs",
|
|
2269
|
-
["strikethrough",
|
|
2270
|
-
["emphasis",
|
|
2271
|
-
["fragments_join",
|
|
2272
|
-
],
|
|
2295
|
+
var Sn = [
|
|
2296
|
+
["text", Wt],
|
|
2297
|
+
["linkify", qt],
|
|
2298
|
+
["newline", Jt],
|
|
2299
|
+
["escape", Yt],
|
|
2300
|
+
["backticks", Zt],
|
|
2301
|
+
["strikethrough", tn.tokenize],
|
|
2302
|
+
["emphasis", on.tokenize],
|
|
2303
|
+
["link", sn],
|
|
2304
|
+
["image", cn],
|
|
2305
|
+
["autolink", dn],
|
|
2306
|
+
["html_inline", hn],
|
|
2307
|
+
["entity", vn]
|
|
2308
|
+
], Cn = [
|
|
2309
|
+
["balance_pairs", bn],
|
|
2310
|
+
["strikethrough", tn.postProcess],
|
|
2311
|
+
["emphasis", on.postProcess],
|
|
2312
|
+
["fragments_join", xn]
|
|
2313
|
+
], wn = class {
|
|
2273
2314
|
constructor() {
|
|
2274
|
-
T(this, "ruler", new
|
|
2275
|
-
for (let e = 0; e <
|
|
2276
|
-
for (let e = 0; e <
|
|
2315
|
+
T(this, "ruler", new B()), T(this, "ruler2", new B()), T(this, "State", Ht);
|
|
2316
|
+
for (let e = 0; e < Sn.length; e++) this.ruler.push(Sn[e][0], Sn[e][1]);
|
|
2317
|
+
for (let e = 0; e < Cn.length; e++) this.ruler2.push(Cn[e][0], Cn[e][1]);
|
|
2277
2318
|
}
|
|
2278
2319
|
skipToken(e) {
|
|
2279
2320
|
let t = e.pos, n = this.ruler.getRules(""), r = n.length, i = e.md.options.maxNesting, a = e.cache;
|
|
@@ -2314,7 +2355,7 @@ var q = [
|
|
|
2314
2355
|
let a = this.ruler2.getRules(""), o = a.length;
|
|
2315
2356
|
for (let e = 0; e < o; e++) a[e](i);
|
|
2316
2357
|
}
|
|
2317
|
-
},
|
|
2358
|
+
}, Tn = class {
|
|
2318
2359
|
constructor(e = {}) {
|
|
2319
2360
|
T(this, "src_Any", x.source), T(this, "src_Cc", ne.source), T(this, "src_Z", ae.source), T(this, "src_P", S.source), T(this, "src_ZPCc", [
|
|
2320
2361
|
this.src_Z,
|
|
@@ -2465,7 +2506,7 @@ var q = [
|
|
|
2465
2506
|
var e, t;
|
|
2466
2507
|
return (t = (e = this.cache).schema_at_start) == null ? e.schema_at_start = RegExp(`^${this.get_schema_search().source}`, "i") : t;
|
|
2467
2508
|
}
|
|
2468
|
-
},
|
|
2509
|
+
}, En = {
|
|
2469
2510
|
validate: (e, t, n) => {
|
|
2470
2511
|
let r = n.re.get_http_validator();
|
|
2471
2512
|
r.lastIndex = t;
|
|
@@ -2473,10 +2514,10 @@ var q = [
|
|
|
2473
2514
|
return i ? i[0].length : 0;
|
|
2474
2515
|
},
|
|
2475
2516
|
normalize: (e, t) => t.normalize(e)
|
|
2476
|
-
},
|
|
2477
|
-
"http:":
|
|
2478
|
-
"https:":
|
|
2479
|
-
"ftp:":
|
|
2517
|
+
}, Dn = {
|
|
2518
|
+
"http:": En,
|
|
2519
|
+
"https:": En,
|
|
2520
|
+
"ftp:": En,
|
|
2480
2521
|
"//": {
|
|
2481
2522
|
validate: function(e, t, n) {
|
|
2482
2523
|
let r = n.re.get_relative_proto_validator();
|
|
@@ -2495,36 +2536,36 @@ var q = [
|
|
|
2495
2536
|
},
|
|
2496
2537
|
normalize: (e, t) => t.normalize(e)
|
|
2497
2538
|
}
|
|
2498
|
-
},
|
|
2499
|
-
function
|
|
2500
|
-
let e =
|
|
2501
|
-
return
|
|
2539
|
+
}, On = "a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw", kn = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";
|
|
2540
|
+
function An() {
|
|
2541
|
+
let e = kn.split("|");
|
|
2542
|
+
return On.split("|").forEach((t) => {
|
|
2502
2543
|
let n = t.indexOf(":"), r = t.slice(0, n);
|
|
2503
2544
|
for (let i of t.slice(n + 1)) e.push(r + i);
|
|
2504
2545
|
}), e;
|
|
2505
2546
|
}
|
|
2506
|
-
var
|
|
2547
|
+
var jn = {
|
|
2507
2548
|
fuzzyLink: !1,
|
|
2508
2549
|
fuzzyEmail: !0,
|
|
2509
2550
|
fuzzyIP: !1,
|
|
2510
2551
|
"---": !1,
|
|
2511
|
-
tlds:
|
|
2552
|
+
tlds: An(),
|
|
2512
2553
|
urlAuth: !1,
|
|
2513
2554
|
maxLength: 1e4
|
|
2514
|
-
},
|
|
2555
|
+
}, Mn = class {
|
|
2515
2556
|
constructor(e, t, n, r) {
|
|
2516
2557
|
T(this, "schema", void 0), T(this, "index", void 0), T(this, "lastIndex", void 0), T(this, "raw", void 0), T(this, "text", void 0), T(this, "url", void 0);
|
|
2517
2558
|
let i = e.slice(n, r);
|
|
2518
2559
|
this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
|
|
2519
2560
|
}
|
|
2520
|
-
},
|
|
2561
|
+
}, Nn = class {
|
|
2521
2562
|
constructor(e = {}) {
|
|
2522
2563
|
T(this, "__opts__", void 0), T(this, "__schemas__", void 0), T(this, "re", void 0);
|
|
2523
2564
|
let { rebuilder: t, ...n } = e;
|
|
2524
2565
|
this.__opts__ = {
|
|
2525
|
-
...
|
|
2566
|
+
...jn,
|
|
2526
2567
|
...n
|
|
2527
|
-
}, this.__schemas__ = { ...
|
|
2568
|
+
}, this.__schemas__ = { ...Dn }, this.re = t || new Tn(), this.re.set({
|
|
2528
2569
|
...this.__opts__,
|
|
2529
2570
|
schema_names: Object.keys(this.__schemas__)
|
|
2530
2571
|
});
|
|
@@ -2640,7 +2681,7 @@ var Dn = {
|
|
|
2640
2681
|
let g = h;
|
|
2641
2682
|
if ((!g || s && (s.index < g.index || s.index === g.index && s.lastIndex > g.lastIndex)) && (g = s), (!g || o && (o.index < g.index || o.index === g.index && o.lastIndex > g.lastIndex)) && (g = o), !g) break;
|
|
2642
2683
|
g === s ? s = void 0 : g === o && (o = void 0);
|
|
2643
|
-
let _ = new
|
|
2684
|
+
let _ = new Mn(e, g.schema, g.index, g.lastIndex);
|
|
2644
2685
|
_.schema ? this.__schemas__[_.schema].normalize(_, this) : this.normalize(_), t.push(_), f = g.lastIndex;
|
|
2645
2686
|
}
|
|
2646
2687
|
return t.length ? t : null;
|
|
@@ -2651,7 +2692,7 @@ var Dn = {
|
|
|
2651
2692
|
if (!t) return null;
|
|
2652
2693
|
let n = this.testSchemaAt(e, t[2], t[0].length);
|
|
2653
2694
|
if (!n) return null;
|
|
2654
|
-
let r = new
|
|
2695
|
+
let r = new Mn(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
|
|
2655
2696
|
return this.__schemas__[r.schema].normalize(r, this), r;
|
|
2656
2697
|
}
|
|
2657
2698
|
tlds(e, t = !1) {
|
|
@@ -2663,26 +2704,26 @@ var Dn = {
|
|
|
2663
2704
|
normalize(e) {
|
|
2664
2705
|
e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
|
|
2665
2706
|
}
|
|
2666
|
-
}, J = 2147483647, Y = 36,
|
|
2707
|
+
}, J = 2147483647, Y = 36, Pn = 1, X = 26, Fn = 38, In = 700, Ln = 72, Rn = 128, zn = "-", Bn = /^xn--/, Vn = /[^\0-\x7F]/, Hn = /[\x2E\u3002\uFF0E\uFF61]/g, Un = {
|
|
2667
2708
|
overflow: "Overflow: input needs wider integers to process",
|
|
2668
2709
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2669
2710
|
"invalid-input": "Invalid input"
|
|
2670
|
-
},
|
|
2711
|
+
}, Wn = 35, Z = Math.floor, Gn = String.fromCharCode;
|
|
2671
2712
|
function Q(e) {
|
|
2672
|
-
throw RangeError(
|
|
2713
|
+
throw RangeError(Un[e]);
|
|
2673
2714
|
}
|
|
2674
|
-
function
|
|
2715
|
+
function Kn(e, t) {
|
|
2675
2716
|
let n = [], r = e.length;
|
|
2676
2717
|
for (; r--;) n[r] = t(e[r]);
|
|
2677
2718
|
return n;
|
|
2678
2719
|
}
|
|
2679
|
-
function
|
|
2720
|
+
function qn(e, t) {
|
|
2680
2721
|
let n = e.split("@"), r = "";
|
|
2681
|
-
n.length > 1 && (r = n[0] + "@", e = n[1]), e = e.replace(
|
|
2682
|
-
let i =
|
|
2722
|
+
n.length > 1 && (r = n[0] + "@", e = n[1]), e = e.replace(Hn, ".");
|
|
2723
|
+
let i = Kn(e.split("."), t).join(".");
|
|
2683
2724
|
return r + i;
|
|
2684
2725
|
}
|
|
2685
|
-
function
|
|
2726
|
+
function Jn(e) {
|
|
2686
2727
|
let t = [], n = 0, r = e.length;
|
|
2687
2728
|
for (; n < r;) {
|
|
2688
2729
|
let i = e.charCodeAt(n++);
|
|
@@ -2693,40 +2734,40 @@ function Wn(e) {
|
|
|
2693
2734
|
}
|
|
2694
2735
|
return t;
|
|
2695
2736
|
}
|
|
2696
|
-
var
|
|
2737
|
+
var Yn = (e) => String.fromCodePoint(...e), Xn = function(e) {
|
|
2697
2738
|
return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : Y;
|
|
2698
|
-
},
|
|
2739
|
+
}, Zn = function(e, t) {
|
|
2699
2740
|
return e + 22 + 75 * (e < 26) - ((t != 0) << 5);
|
|
2700
|
-
},
|
|
2741
|
+
}, Qn = function(e, t, n) {
|
|
2701
2742
|
let r = 0;
|
|
2702
|
-
for (e = n ? Z(e /
|
|
2703
|
-
return Z(r + 36 * e / (e +
|
|
2704
|
-
},
|
|
2705
|
-
let t = [], n = e.length, r = 0, i =
|
|
2743
|
+
for (e = n ? Z(e / In) : e >> 1, e += Z(e / t); e > 455; r += Y) e = Z(e / Wn);
|
|
2744
|
+
return Z(r + 36 * e / (e + Fn));
|
|
2745
|
+
}, $n = function(e) {
|
|
2746
|
+
let t = [], n = e.length, r = 0, i = Rn, a = Ln, o = e.lastIndexOf(zn);
|
|
2706
2747
|
o < 0 && (o = 0);
|
|
2707
2748
|
for (let n = 0; n < o; ++n) e.charCodeAt(n) >= 128 && Q("not-basic"), t.push(e.charCodeAt(n));
|
|
2708
2749
|
for (let s = o > 0 ? o + 1 : 0; s < n;) {
|
|
2709
2750
|
let o = r;
|
|
2710
2751
|
for (let t = 1, i = Y;; i += Y) {
|
|
2711
2752
|
s >= n && Q("invalid-input");
|
|
2712
|
-
let o =
|
|
2753
|
+
let o = Xn(e.charCodeAt(s++));
|
|
2713
2754
|
o >= Y && Q("invalid-input"), o > Z((J - r) / t) && Q("overflow"), r += o * t;
|
|
2714
|
-
let c = i <= a ?
|
|
2755
|
+
let c = i <= a ? Pn : i >= a + X ? X : i - a;
|
|
2715
2756
|
if (o < c) break;
|
|
2716
2757
|
let l = Y - c;
|
|
2717
2758
|
t > Z(J / l) && Q("overflow"), t *= l;
|
|
2718
2759
|
}
|
|
2719
2760
|
let c = t.length + 1;
|
|
2720
|
-
a =
|
|
2761
|
+
a = Qn(r - o, c, o == 0), Z(r / c) > J - i && Q("overflow"), i += Z(r / c), r %= c, t.splice(r++, 0, i);
|
|
2721
2762
|
}
|
|
2722
2763
|
return String.fromCodePoint(...t);
|
|
2723
|
-
},
|
|
2764
|
+
}, er = function(e) {
|
|
2724
2765
|
let t = [];
|
|
2725
|
-
e =
|
|
2726
|
-
let n = e.length, r =
|
|
2727
|
-
for (let n of e) n < 128 && t.push(
|
|
2766
|
+
e = Jn(e);
|
|
2767
|
+
let n = e.length, r = Rn, i = 0, a = Ln;
|
|
2768
|
+
for (let n of e) n < 128 && t.push(Gn(n));
|
|
2728
2769
|
let o = t.length, s = o;
|
|
2729
|
-
for (o && t.push(
|
|
2770
|
+
for (o && t.push(zn); s < n;) {
|
|
2730
2771
|
let n = J;
|
|
2731
2772
|
for (let t of e) t >= r && t < n && (n = t);
|
|
2732
2773
|
let c = s + 1;
|
|
@@ -2734,35 +2775,35 @@ var Gn = (e) => String.fromCodePoint(...e), Kn = function(e) {
|
|
|
2734
2775
|
for (let n of e) if (n < r && ++i > J && Q("overflow"), n === r) {
|
|
2735
2776
|
let e = i;
|
|
2736
2777
|
for (let n = Y;; n += Y) {
|
|
2737
|
-
let r = n <= a ?
|
|
2778
|
+
let r = n <= a ? Pn : n >= a + X ? X : n - a;
|
|
2738
2779
|
if (e < r) break;
|
|
2739
2780
|
let i = e - r, o = Y - r;
|
|
2740
|
-
t.push(
|
|
2781
|
+
t.push(Gn(Zn(r + i % o, 0))), e = Z(i / o);
|
|
2741
2782
|
}
|
|
2742
|
-
t.push(
|
|
2783
|
+
t.push(Gn(Zn(e, 0))), a = Qn(i, c, s === o), i = 0, ++s;
|
|
2743
2784
|
}
|
|
2744
2785
|
++i, ++r;
|
|
2745
2786
|
}
|
|
2746
2787
|
return t.join("");
|
|
2747
|
-
},
|
|
2788
|
+
}, tr = {
|
|
2748
2789
|
version: "2.3.1",
|
|
2749
2790
|
ucs2: {
|
|
2750
|
-
decode:
|
|
2751
|
-
encode:
|
|
2791
|
+
decode: Jn,
|
|
2792
|
+
encode: Yn
|
|
2752
2793
|
},
|
|
2753
|
-
decode:
|
|
2754
|
-
encode:
|
|
2794
|
+
decode: $n,
|
|
2795
|
+
encode: er,
|
|
2755
2796
|
toASCII: function(e) {
|
|
2756
|
-
return
|
|
2757
|
-
return
|
|
2797
|
+
return qn(e, function(e) {
|
|
2798
|
+
return Vn.test(e) ? "xn--" + er(e) : e;
|
|
2758
2799
|
});
|
|
2759
2800
|
},
|
|
2760
2801
|
toUnicode: function(e) {
|
|
2761
|
-
return
|
|
2762
|
-
return
|
|
2802
|
+
return qn(e, function(e) {
|
|
2803
|
+
return Bn.test(e) ? $n(e.slice(4).toLowerCase()) : e;
|
|
2763
2804
|
});
|
|
2764
2805
|
}
|
|
2765
|
-
},
|
|
2806
|
+
}, nr = {
|
|
2766
2807
|
default: {
|
|
2767
2808
|
options: {
|
|
2768
2809
|
html: !1,
|
|
@@ -2861,31 +2902,31 @@ var Gn = (e) => String.fromCodePoint(...e), Kn = function(e) {
|
|
|
2861
2902
|
}
|
|
2862
2903
|
}
|
|
2863
2904
|
}
|
|
2864
|
-
},
|
|
2905
|
+
}, rr = /^(vbscript|javascript|file|data):/, ir = /^data:image\/(gif|png|jpeg|webp);/, ar = [
|
|
2865
2906
|
"http:",
|
|
2866
2907
|
"https:",
|
|
2867
2908
|
"mailto:"
|
|
2868
2909
|
], $ = class {
|
|
2869
2910
|
validateLink(e) {
|
|
2870
2911
|
let t = e.trim().toLowerCase();
|
|
2871
|
-
return
|
|
2912
|
+
return !rr.test(t) || ir.test(t);
|
|
2872
2913
|
}
|
|
2873
2914
|
normalizeLink(e) {
|
|
2874
2915
|
let t = b(e, !0);
|
|
2875
|
-
if (t.hostname && (!t.protocol ||
|
|
2876
|
-
t.hostname =
|
|
2916
|
+
if (t.hostname && (!t.protocol || ar.indexOf(t.protocol) >= 0)) try {
|
|
2917
|
+
t.hostname = tr.toASCII(t.hostname);
|
|
2877
2918
|
} catch (e) {}
|
|
2878
|
-
return s(c(t)
|
|
2919
|
+
return t.auth && (t.auth = s(t.auth)), t.hostname && (t.hostname = s(t.hostname)), t.pathname && (t.pathname = s(t.pathname)), t.search && (t.search = s(t.search)), t.hash && (t.hash = s(t.hash)), c(t);
|
|
2879
2920
|
}
|
|
2880
2921
|
normalizeLinkText(e) {
|
|
2881
2922
|
let t = b(e, !0);
|
|
2882
|
-
if (t.hostname && (!t.protocol ||
|
|
2883
|
-
t.hostname =
|
|
2923
|
+
if (t.hostname && (!t.protocol || ar.indexOf(t.protocol) >= 0)) try {
|
|
2924
|
+
t.hostname = tr.toUnicode(t.hostname);
|
|
2884
2925
|
} catch (e) {}
|
|
2885
2926
|
return i(c(t), i.defaultChars + "%");
|
|
2886
2927
|
}
|
|
2887
2928
|
constructor(...e) {
|
|
2888
|
-
T(this, "inline", new
|
|
2929
|
+
T(this, "inline", new wn()), T(this, "block", new Vt()), T(this, "core", new vt()), T(this, "renderer", new Ue()), T(this, "linkify", new Nn()), T(this, "utils", xe), T(this, "helpers", Object.assign({}, He));
|
|
2889
2930
|
let [t, n] = e;
|
|
2890
2931
|
typeof t == "string" ? (this.configure(t), n && this.set(n)) : (this.configure("default"), this.set(t || {}));
|
|
2891
2932
|
}
|
|
@@ -2896,7 +2937,7 @@ var Gn = (e) => String.fromCodePoint(...e), Kn = function(e) {
|
|
|
2896
2937
|
let t;
|
|
2897
2938
|
if (typeof e == "string") {
|
|
2898
2939
|
let n = e;
|
|
2899
|
-
if (t =
|
|
2940
|
+
if (t = nr[n], !t) throw Error(`Wrong 'markdown-it' preset "${n}", check name`);
|
|
2900
2941
|
} else t = e;
|
|
2901
2942
|
if (!t) throw Error("Wrong `markdown-it` preset, can't be empty");
|
|
2902
2943
|
t.options && (this.options = { ...t.options });
|
|
@@ -2962,11 +3003,11 @@ var Gn = (e) => String.fromCodePoint(...e), Kn = function(e) {
|
|
|
2962
3003
|
return this.renderer.render(this.parseInline(e, t), this.options, t);
|
|
2963
3004
|
}
|
|
2964
3005
|
};
|
|
2965
|
-
T($, "Token",
|
|
3006
|
+
T($, "Token", z), T($, "Ruler", B), T($, "Renderer", Ue), T($, "ParserCore", vt), T($, "StateCore", We), T($, "ParserBlock", Vt), T($, "StateBlock", yt), T($, "ParserInline", wn), T($, "StateInline", Ht);
|
|
2966
3007
|
//#endregion
|
|
2967
3008
|
//#region src/index.ts
|
|
2968
|
-
var
|
|
3009
|
+
var or = Se($);
|
|
2969
3010
|
//#endregion
|
|
2970
|
-
export {
|
|
3011
|
+
export { or as default };
|
|
2971
3012
|
|
|
2972
3013
|
//# sourceMappingURL=markdown-it.esm.min.mjs.map
|