zt-react-milkdown 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist-Cxaq2crg.js → commands-BJpevWrH.js} +123 -123
- package/dist/commands-BmZHd6RL.js +2 -0
- package/dist/{dist-CPVooDwj.cjs → commands-CM7IuhpT.cjs} +2 -2
- package/dist/commands-f4yOm8DQ.cjs +1 -0
- package/dist/{debounce-Bqj_3iJs.cjs → debounce-C_TNzOFT.cjs} +1 -1
- package/dist/{dist-DaM7GJv6.js → dist-CLTsQjPD.js} +319 -318
- package/dist/{dist-CxZn1qUo.js → dist-CZTw9GLV.js} +198 -198
- package/dist/dist-DQnWlYyo.cjs +5 -0
- package/dist/dist-ZPtYoqTI.cjs +1 -0
- package/dist/floating-ui.dom-CV-TLBRq.cjs +1 -0
- package/dist/floating-ui.dom-CoOubeUs.js +762 -0
- package/dist/index.cjs +25 -149
- package/dist/index.mjs +6235 -15737
- package/dist/{lib-C8xOD1Bp.cjs → lib-5pUyY-Tl.cjs} +1 -1
- package/dist/{lib-DkE7Uq2b.js → lib-Bhr5EVOu.js} +110 -112
- package/dist/lib-BmAQCwSQ.cjs +1 -0
- package/dist/{lib-wmHesNI0.js → lib-C1A-pN4b.js} +574 -575
- package/dist/lib-CVebEyb8.cjs +4 -0
- package/dist/lib-ChwoE6v5.js +331 -0
- package/dist/lib-DIx8C5AZ.cjs +1 -0
- package/dist/lib-DVE2k9i1.js +387 -0
- package/dist/{lib-DzK_kn7a.js → lib-D_0WAhKU.js} +3 -3
- package/dist/{lib-m8lKZKxK.js → lib-Dd20rlmV.js} +28 -28
- package/dist/lib-De0djIEV.cjs +5 -0
- package/dist/{lib-D4HMdvmK.cjs → lib-DgEwQN1U.cjs} +1 -1
- package/dist/{dist-Dhukmh4L.js → lib-DmD940Fq.js} +2849 -1735
- package/dist/lib-Dplx6t-N.cjs +3 -0
- package/dist/lib-DzY83R_P.cjs +39 -0
- package/dist/lib-F08NY8fk.cjs +1 -0
- package/dist/{lib-B0rHJ9lJ.js → lib-_NDReOAt.js} +3 -3
- package/dist/{lib-CK9MEMX-.js → lib-bsXGz3fj.js} +28 -27
- package/dist/schema-list-D9Q6QKgo.cjs +1 -0
- package/dist/schema-list-DooYP5HM.js +110 -0
- package/dist/src/core/createEditor.d.ts.map +1 -1
- package/dist/src/local/en-US.d.ts.map +1 -1
- package/dist/src/local/zh-CN.d.ts.map +1 -1
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts +15 -0
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts.map +1 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts +2 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/index.d.ts +6 -0
- package/dist/src/plugins/custom/math/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-block-editable.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts +5 -0
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts +29 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts +7 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-plugin.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts +5 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts +34 -3
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts +16 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-commands.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts +4 -0
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu.d.ts.map +1 -1
- package/dist/src/plugins/preset-common.d.ts +6 -0
- package/dist/src/plugins/preset-common.d.ts.map +1 -1
- package/dist/src/react/hooks/useMilkdownEditor.d.ts +2 -2
- package/dist/src/react/hooks/useMilkdownEditor.d.ts.map +1 -1
- package/dist/src/types/editor.d.ts +35 -5
- package/dist/src/types/editor.d.ts.map +1 -1
- package/dist/state-BC1dqWPQ.cjs +1 -0
- package/dist/state-BvRk9kiK.cjs +0 -0
- package/dist/state-BvRk9kiK.js +0 -0
- package/dist/state-rTW_1XVf.js +3 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/commands-CDrea4WB.cjs +0 -1
- package/dist/commands-DoqeX5uJ.js +0 -36
- package/dist/dist-BCCSKc3M.cjs +0 -5
- package/dist/dist-C0PSMrs7.cjs +0 -37
- package/dist/dist-mOpTMw1E.cjs +0 -1
- package/dist/floating-ui.dom-CKbcbmJV.js +0 -883
- package/dist/floating-ui.dom-VaZZ2gzS.cjs +0 -1
- package/dist/index.browser-5LtNN9G9.cjs +0 -1
- package/dist/index.browser-D2DmEB8o.js +0 -26
- package/dist/lib-38nxOnTd.cjs +0 -4
- package/dist/lib-8Tr6mAln.cjs +0 -1
- package/dist/lib-BJgvZywM.cjs +0 -3
- package/dist/lib-BNOSyYeU.cjs +0 -3
- package/dist/lib-C5AzmhNY.cjs +0 -5
- package/dist/lib-CCUU16r8.js +0 -1081
- package/dist/lib-DWZA8C0h.cjs +0 -1
- package/dist/lib-Dbe-cVjv.js +0 -367
- package/dist/lib-IahjxPWM.cjs +0 -3
- package/dist/lib-r5eNG0sa.js +0 -754
- package/dist/rolldown-runtime-CerMd-t8.cjs +0 -1
- package/dist/rolldown-runtime-DnwLefa7.js +0 -23
- package/dist/schema-list-DSdBEAWW.js +0 -171
- package/dist/schema-list-bL8FNes5.cjs +0 -1
- package/dist/state-CHAiIqOA.cjs +0 -1
- package/dist/state-DNxqltZl.js +0 -16
- /package/dist/{debounce-Cuk3VGPr.js → debounce-Z8-khnlZ.js} +0 -0
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as
|
|
7
|
-
import { _ as he, c as ge, d as _e, f as ve, g as ye, h as be, i as xe, l as Se, m as Ce, n as A, p as we, r as Te, s as Ee, t as j, u as De, v as Oe, y as ke } from "./dist-CxZn1qUo.js";
|
|
1
|
+
import { H as e, J as t, L as n, M as r, P as i, Q as a, R as o, W as s, Z as c, at as l, ct as u, dt as d, et as f, ft as p, it as m, j as h, lt as g, mt as _, nt as v, ot as ee, pt as te, rt as y, s as b, st as x, tt as S, ut as C, vt as w } from "./lib-DmD940Fq.js";
|
|
2
|
+
import { A as T, a as E, c as ne, i as re, o as ie, w as D } from "./dist-CLTsQjPD.js";
|
|
3
|
+
import { O as ae } from "./commands-BJpevWrH.js";
|
|
4
|
+
import { a as oe, c as O, d as se, i as ce, l as le, p as ue, r as de, t as k, u as A } from "./lib-DVE2k9i1.js";
|
|
5
|
+
import { i as fe, r as pe } from "./lib-Bhr5EVOu.js";
|
|
6
|
+
import { _ as me, c as he, d as ge, f as _e, g as ve, h as ye, i as be, l as xe, m as Se, n as j, p as Ce, r as we, s as Te, t as M, u as Ee, v as De, y as Oe } from "./dist-CZTw9GLV.js";
|
|
8
7
|
//#region node_modules/.pnpm/prosemirror-safari-ime-span@1.0.2/node_modules/prosemirror-safari-ime-span/dist/index.js
|
|
9
|
-
var
|
|
10
|
-
key:
|
|
8
|
+
var N = typeof navigator < "u" ? navigator : null, ke = N && N.userAgent || "", Ae = /Edge\/(\d+)/.exec(ke), je = /MSIE \d/.exec(ke), Me = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ke), Ne = !(je || Me || Ae) && !!N && /Apple Computer/.test(N.vendor), Pe = new E("safari-ime-span"), Fe = !1, Ie = {
|
|
9
|
+
key: Pe,
|
|
11
10
|
props: {
|
|
12
|
-
decorations:
|
|
11
|
+
decorations: Le,
|
|
13
12
|
handleDOMEvents: {
|
|
14
13
|
compositionstart: () => {
|
|
15
|
-
|
|
14
|
+
Fe = !0;
|
|
16
15
|
},
|
|
17
16
|
compositionend: () => {
|
|
18
|
-
|
|
17
|
+
Fe = !1;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
|
-
function
|
|
24
|
-
let { $from: t, $to: n, to:
|
|
25
|
-
if (
|
|
26
|
-
let t =
|
|
22
|
+
function Le(e) {
|
|
23
|
+
let { $from: t, $to: n, to: i } = e.selection;
|
|
24
|
+
if (Fe && t.sameParent(n)) {
|
|
25
|
+
let t = h.widget(i, Re, {
|
|
27
26
|
ignoreSelection: !0,
|
|
28
27
|
key: "safari-ime-span"
|
|
29
28
|
});
|
|
30
|
-
return
|
|
29
|
+
return r.create(e.doc, [t]);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function Re(e) {
|
|
34
33
|
let t = e.dom.ownerDocument.createElement("span");
|
|
35
34
|
return t.className = "ProseMirror-safari-ime-span", t;
|
|
36
35
|
}
|
|
37
|
-
var
|
|
36
|
+
var ze = new re(Ne ? Ie : { key: Pe });
|
|
38
37
|
//#endregion
|
|
39
38
|
//#region node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
|
|
40
|
-
function
|
|
39
|
+
function Be(e, t) {
|
|
41
40
|
let n = String(e);
|
|
42
41
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
43
42
|
let r = 0, i = n.indexOf(t);
|
|
@@ -46,26 +45,26 @@ function Ve(e, t) {
|
|
|
46
45
|
}
|
|
47
46
|
//#endregion
|
|
48
47
|
//#region node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
|
49
|
-
function
|
|
48
|
+
function Ve(e) {
|
|
50
49
|
if (typeof e != "string") throw TypeError("Expected a string");
|
|
51
50
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
52
51
|
}
|
|
53
52
|
//#endregion
|
|
54
53
|
//#region node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js
|
|
55
|
-
function
|
|
56
|
-
let r =
|
|
57
|
-
for (; ++
|
|
58
|
-
function
|
|
54
|
+
function He(e, t, n) {
|
|
55
|
+
let r = a((n || {}).ignore || []), i = Ue(t), o = -1;
|
|
56
|
+
for (; ++o < i.length;) c(e, "text", s);
|
|
57
|
+
function s(e, t) {
|
|
59
58
|
let n = -1, i;
|
|
60
59
|
for (; ++n < t.length;) {
|
|
61
60
|
let e = t[n], a = i ? i.children : void 0;
|
|
62
61
|
if (r(e, a ? a.indexOf(e) : void 0, i)) return;
|
|
63
62
|
i = e;
|
|
64
63
|
}
|
|
65
|
-
if (i) return
|
|
64
|
+
if (i) return l(e, t);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
68
|
-
let n = t[t.length - 1], r = i[
|
|
66
|
+
function l(e, t) {
|
|
67
|
+
let n = t[t.length - 1], r = i[o][0], a = i[o][1], s = 0, c = n.children.indexOf(e), l = !1, u = [];
|
|
69
68
|
r.lastIndex = 0;
|
|
70
69
|
let d = r.exec(e.value);
|
|
71
70
|
for (; d;) {
|
|
@@ -73,14 +72,14 @@ function Ue(e, t, n) {
|
|
|
73
72
|
index: d.index,
|
|
74
73
|
input: d.input,
|
|
75
74
|
stack: [...t, e]
|
|
76
|
-
},
|
|
77
|
-
if (typeof
|
|
75
|
+
}, o = a(...d, i);
|
|
76
|
+
if (typeof o == "string" && (o = o.length > 0 ? {
|
|
78
77
|
type: "text",
|
|
79
|
-
value:
|
|
80
|
-
} : void 0),
|
|
78
|
+
value: o
|
|
79
|
+
} : void 0), o === !1 ? r.lastIndex = n + 1 : (s !== n && u.push({
|
|
81
80
|
type: "text",
|
|
82
81
|
value: e.value.slice(s, n)
|
|
83
|
-
}), Array.isArray(
|
|
82
|
+
}), Array.isArray(o) ? u.push(...o) : o && u.push(o), s = n + d[0].length, l = !0), !r.global) break;
|
|
84
83
|
d = r.exec(e.value);
|
|
85
84
|
}
|
|
86
85
|
return l ? (s < e.value.length && u.push({
|
|
@@ -89,75 +88,75 @@ function Ue(e, t, n) {
|
|
|
89
88
|
}), n.children.splice(c, 1, ...u)) : u = [e], c + u.length;
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function Ue(e) {
|
|
93
92
|
let t = [];
|
|
94
93
|
if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
|
|
95
94
|
let n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
|
|
96
95
|
for (; ++r < n.length;) {
|
|
97
96
|
let e = n[r];
|
|
98
|
-
t.push([
|
|
97
|
+
t.push([We(e[0]), Ge(e[1])]);
|
|
99
98
|
}
|
|
100
99
|
return t;
|
|
101
100
|
}
|
|
102
|
-
function
|
|
103
|
-
return typeof e == "string" ? new RegExp(
|
|
101
|
+
function We(e) {
|
|
102
|
+
return typeof e == "string" ? new RegExp(Ve(e), "g") : e;
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function Ge(e) {
|
|
106
105
|
return typeof e == "function" ? e : function() {
|
|
107
106
|
return e;
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
//#endregion
|
|
111
110
|
//#region node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
112
|
-
var
|
|
111
|
+
var Ke = "phrasing", qe = [
|
|
113
112
|
"autolink",
|
|
114
113
|
"link",
|
|
115
114
|
"image",
|
|
116
115
|
"label"
|
|
117
116
|
];
|
|
118
|
-
function
|
|
117
|
+
function Je() {
|
|
119
118
|
return {
|
|
120
|
-
transforms: [
|
|
119
|
+
transforms: [nt],
|
|
121
120
|
enter: {
|
|
122
|
-
literalAutolink:
|
|
123
|
-
literalAutolinkEmail:
|
|
124
|
-
literalAutolinkHttp:
|
|
125
|
-
literalAutolinkWww:
|
|
121
|
+
literalAutolink: Xe,
|
|
122
|
+
literalAutolinkEmail: Ze,
|
|
123
|
+
literalAutolinkHttp: Ze,
|
|
124
|
+
literalAutolinkWww: Ze
|
|
126
125
|
},
|
|
127
126
|
exit: {
|
|
128
|
-
literalAutolink:
|
|
129
|
-
literalAutolinkEmail:
|
|
130
|
-
literalAutolinkHttp:
|
|
131
|
-
literalAutolinkWww:
|
|
127
|
+
literalAutolink: tt,
|
|
128
|
+
literalAutolinkEmail: et,
|
|
129
|
+
literalAutolinkHttp: Qe,
|
|
130
|
+
literalAutolinkWww: $e
|
|
132
131
|
}
|
|
133
132
|
};
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function Ye() {
|
|
136
135
|
return { unsafe: [
|
|
137
136
|
{
|
|
138
137
|
character: "@",
|
|
139
138
|
before: "[+\\-.\\w]",
|
|
140
139
|
after: "[\\-.\\w]",
|
|
141
|
-
inConstruct:
|
|
142
|
-
notInConstruct:
|
|
140
|
+
inConstruct: Ke,
|
|
141
|
+
notInConstruct: qe
|
|
143
142
|
},
|
|
144
143
|
{
|
|
145
144
|
character: ".",
|
|
146
145
|
before: "[Ww]",
|
|
147
146
|
after: "[\\-.\\w]",
|
|
148
|
-
inConstruct:
|
|
149
|
-
notInConstruct:
|
|
147
|
+
inConstruct: Ke,
|
|
148
|
+
notInConstruct: qe
|
|
150
149
|
},
|
|
151
150
|
{
|
|
152
151
|
character: ":",
|
|
153
152
|
before: "[ps]",
|
|
154
153
|
after: "\\/",
|
|
155
|
-
inConstruct:
|
|
156
|
-
notInConstruct:
|
|
154
|
+
inConstruct: Ke,
|
|
155
|
+
notInConstruct: qe
|
|
157
156
|
}
|
|
158
157
|
] };
|
|
159
158
|
}
|
|
160
|
-
function
|
|
159
|
+
function Xe(e) {
|
|
161
160
|
this.enter({
|
|
162
161
|
type: "link",
|
|
163
162
|
title: null,
|
|
@@ -165,30 +164,30 @@ function Ze(e) {
|
|
|
165
164
|
children: []
|
|
166
165
|
}, e);
|
|
167
166
|
}
|
|
168
|
-
function
|
|
167
|
+
function Ze(e) {
|
|
169
168
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
170
169
|
}
|
|
171
|
-
function
|
|
170
|
+
function Qe(e) {
|
|
172
171
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function $e(e) {
|
|
175
174
|
this.config.exit.data.call(this, e);
|
|
176
175
|
let t = this.stack[this.stack.length - 1];
|
|
177
176
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
178
177
|
}
|
|
179
|
-
function
|
|
178
|
+
function et(e) {
|
|
180
179
|
this.config.exit.autolinkEmail.call(this, e);
|
|
181
180
|
}
|
|
182
|
-
function
|
|
181
|
+
function tt(e) {
|
|
183
182
|
this.exit(e);
|
|
184
183
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
184
|
+
function nt(e) {
|
|
185
|
+
He(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, rt], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, it]], { ignore: ["link", "linkReference"] });
|
|
187
186
|
}
|
|
188
|
-
function
|
|
187
|
+
function rt(e, t, n, r, i) {
|
|
189
188
|
let a = "";
|
|
190
|
-
if (!
|
|
191
|
-
let o =
|
|
189
|
+
if (!st(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !at(n))) return !1;
|
|
190
|
+
let o = ot(n + r);
|
|
192
191
|
if (!o[0]) return !1;
|
|
193
192
|
let s = {
|
|
194
193
|
type: "link",
|
|
@@ -204,8 +203,8 @@ function it(e, t, n, r, i) {
|
|
|
204
203
|
value: o[1]
|
|
205
204
|
}] : s;
|
|
206
205
|
}
|
|
207
|
-
function
|
|
208
|
-
return !
|
|
206
|
+
function it(e, t, n, r) {
|
|
207
|
+
return !st(r, !0) || /[-\d_]$/.test(n) ? !1 : {
|
|
209
208
|
type: "link",
|
|
210
209
|
title: null,
|
|
211
210
|
url: "mailto:" + t + "@" + n,
|
|
@@ -215,39 +214,39 @@ function at(e, t, n, r) {
|
|
|
215
214
|
}]
|
|
216
215
|
};
|
|
217
216
|
}
|
|
218
|
-
function
|
|
217
|
+
function at(e) {
|
|
219
218
|
let t = e.split(".");
|
|
220
219
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
221
220
|
}
|
|
222
|
-
function
|
|
221
|
+
function ot(e) {
|
|
223
222
|
let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
224
223
|
if (!t) return [e, void 0];
|
|
225
224
|
e = e.slice(0, t.index);
|
|
226
|
-
let n = t[0], r = n.indexOf(")"), i =
|
|
225
|
+
let n = t[0], r = n.indexOf(")"), i = Be(e, "("), a = Be(e, ")");
|
|
227
226
|
for (; r !== -1 && i > a;) e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
|
|
228
227
|
return [e, n];
|
|
229
228
|
}
|
|
230
|
-
function
|
|
229
|
+
function st(e, t) {
|
|
231
230
|
let n = e.input.charCodeAt(e.index - 1);
|
|
232
|
-
return (e.index === 0 ||
|
|
231
|
+
return (e.index === 0 || d(n) || C(n)) && (!t || n !== 47);
|
|
233
232
|
}
|
|
234
233
|
//#endregion
|
|
235
234
|
//#region node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
236
|
-
|
|
237
|
-
function
|
|
235
|
+
_t.peek = gt;
|
|
236
|
+
function ct() {
|
|
238
237
|
this.buffer();
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function lt(e) {
|
|
241
240
|
this.enter({
|
|
242
241
|
type: "footnoteReference",
|
|
243
242
|
identifier: "",
|
|
244
243
|
label: ""
|
|
245
244
|
}, e);
|
|
246
245
|
}
|
|
247
|
-
function
|
|
246
|
+
function ut() {
|
|
248
247
|
this.buffer();
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function dt(e) {
|
|
251
250
|
this.enter({
|
|
252
251
|
type: "footnoteDefinition",
|
|
253
252
|
identifier: "",
|
|
@@ -255,52 +254,52 @@ function ft(e) {
|
|
|
255
254
|
children: []
|
|
256
255
|
}, e);
|
|
257
256
|
}
|
|
258
|
-
function
|
|
257
|
+
function ft(e) {
|
|
259
258
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
260
|
-
n.type, n.identifier =
|
|
259
|
+
n.type, n.identifier = p(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
261
260
|
}
|
|
262
|
-
function
|
|
261
|
+
function pt(e) {
|
|
263
262
|
this.exit(e);
|
|
264
263
|
}
|
|
265
|
-
function
|
|
264
|
+
function mt(e) {
|
|
266
265
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
267
|
-
n.type, n.identifier =
|
|
266
|
+
n.type, n.identifier = p(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
268
267
|
}
|
|
269
|
-
function
|
|
268
|
+
function ht(e) {
|
|
270
269
|
this.exit(e);
|
|
271
270
|
}
|
|
272
|
-
function
|
|
271
|
+
function gt() {
|
|
273
272
|
return "[";
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function _t(e, t, n, r) {
|
|
276
275
|
let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
|
|
277
276
|
return a += i.move(n.safe(n.associationId(e), {
|
|
278
277
|
after: "]",
|
|
279
278
|
before: a
|
|
280
279
|
})), s(), o(), a += i.move("]"), a;
|
|
281
280
|
}
|
|
282
|
-
function
|
|
281
|
+
function vt() {
|
|
283
282
|
return {
|
|
284
283
|
enter: {
|
|
285
|
-
gfmFootnoteCallString:
|
|
286
|
-
gfmFootnoteCall:
|
|
287
|
-
gfmFootnoteDefinitionLabelString:
|
|
288
|
-
gfmFootnoteDefinition:
|
|
284
|
+
gfmFootnoteCallString: ct,
|
|
285
|
+
gfmFootnoteCall: lt,
|
|
286
|
+
gfmFootnoteDefinitionLabelString: ut,
|
|
287
|
+
gfmFootnoteDefinition: dt
|
|
289
288
|
},
|
|
290
289
|
exit: {
|
|
291
|
-
gfmFootnoteCallString:
|
|
292
|
-
gfmFootnoteCall:
|
|
293
|
-
gfmFootnoteDefinitionLabelString:
|
|
294
|
-
gfmFootnoteDefinition:
|
|
290
|
+
gfmFootnoteCallString: ft,
|
|
291
|
+
gfmFootnoteCall: pt,
|
|
292
|
+
gfmFootnoteDefinitionLabelString: mt,
|
|
293
|
+
gfmFootnoteDefinition: ht
|
|
295
294
|
}
|
|
296
295
|
};
|
|
297
296
|
}
|
|
298
|
-
function
|
|
297
|
+
function yt(e) {
|
|
299
298
|
let t = !1;
|
|
300
299
|
return e && e.firstLineBlank && (t = !0), {
|
|
301
300
|
handlers: {
|
|
302
301
|
footnoteDefinition: n,
|
|
303
|
-
footnoteReference:
|
|
302
|
+
footnoteReference: _t
|
|
304
303
|
},
|
|
305
304
|
unsafe: [{
|
|
306
305
|
character: "[",
|
|
@@ -316,18 +315,18 @@ function bt(e) {
|
|
|
316
315
|
return o += a.move(r.safe(r.associationId(e), {
|
|
317
316
|
before: o,
|
|
318
317
|
after: "]"
|
|
319
|
-
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ?
|
|
318
|
+
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ? xt : bt))), s(), o;
|
|
320
319
|
}
|
|
321
320
|
}
|
|
322
|
-
function
|
|
323
|
-
return t === 0 ? e :
|
|
321
|
+
function bt(e, t, n) {
|
|
322
|
+
return t === 0 ? e : xt(e, t, n);
|
|
324
323
|
}
|
|
325
|
-
function
|
|
324
|
+
function xt(e, t, n) {
|
|
326
325
|
return (n ? "" : " ") + e;
|
|
327
326
|
}
|
|
328
327
|
//#endregion
|
|
329
328
|
//#region node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
330
|
-
var
|
|
329
|
+
var St = [
|
|
331
330
|
"autolink",
|
|
332
331
|
"destinationLiteral",
|
|
333
332
|
"destinationRaw",
|
|
@@ -335,34 +334,34 @@ var Ct = [
|
|
|
335
334
|
"titleQuote",
|
|
336
335
|
"titleApostrophe"
|
|
337
336
|
];
|
|
338
|
-
|
|
339
|
-
function
|
|
337
|
+
Dt.peek = Ot;
|
|
338
|
+
function Ct() {
|
|
340
339
|
return {
|
|
341
340
|
canContainEols: ["delete"],
|
|
342
|
-
enter: { strikethrough:
|
|
343
|
-
exit: { strikethrough:
|
|
341
|
+
enter: { strikethrough: Tt },
|
|
342
|
+
exit: { strikethrough: Et }
|
|
344
343
|
};
|
|
345
344
|
}
|
|
346
|
-
function
|
|
345
|
+
function wt() {
|
|
347
346
|
return {
|
|
348
347
|
unsafe: [{
|
|
349
348
|
character: "~",
|
|
350
349
|
inConstruct: "phrasing",
|
|
351
|
-
notInConstruct:
|
|
350
|
+
notInConstruct: St
|
|
352
351
|
}],
|
|
353
|
-
handlers: { delete:
|
|
352
|
+
handlers: { delete: Dt }
|
|
354
353
|
};
|
|
355
354
|
}
|
|
356
|
-
function
|
|
355
|
+
function Tt(e) {
|
|
357
356
|
this.enter({
|
|
358
357
|
type: "delete",
|
|
359
358
|
children: []
|
|
360
359
|
}, e);
|
|
361
360
|
}
|
|
362
|
-
function
|
|
361
|
+
function Et(e) {
|
|
363
362
|
this.exit(e);
|
|
364
363
|
}
|
|
365
|
-
function
|
|
364
|
+
function Dt(e, t, n, r) {
|
|
366
365
|
let i = n.createTracker(r), a = n.enter("strikethrough"), o = i.move("~~");
|
|
367
366
|
return o += n.containerPhrasing(e, {
|
|
368
367
|
...i.current(),
|
|
@@ -370,20 +369,20 @@ function Ot(e, t, n, r) {
|
|
|
370
369
|
after: "~"
|
|
371
370
|
}), o += i.move("~~"), a(), o;
|
|
372
371
|
}
|
|
373
|
-
function
|
|
372
|
+
function Ot() {
|
|
374
373
|
return "~";
|
|
375
374
|
}
|
|
376
375
|
//#endregion
|
|
377
376
|
//#region node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js
|
|
378
|
-
function
|
|
377
|
+
function kt(e) {
|
|
379
378
|
return e.length;
|
|
380
379
|
}
|
|
381
|
-
function
|
|
382
|
-
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
380
|
+
function At(e, t) {
|
|
381
|
+
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength || kt, a = [], o = [], s = [], c = [], l = 0, u = -1;
|
|
383
382
|
for (; ++u < e.length;) {
|
|
384
383
|
let t = [], r = [], a = -1;
|
|
385
384
|
for (e[u].length > l && (l = e[u].length); ++a < e[u].length;) {
|
|
386
|
-
let o =
|
|
385
|
+
let o = jt(e[u][a]);
|
|
387
386
|
if (n.alignDelimiters !== !1) {
|
|
388
387
|
let e = i(o);
|
|
389
388
|
r[a] = e, (c[a] === void 0 || e > c[a]) && (c[a] = e);
|
|
@@ -393,9 +392,9 @@ function jt(e, t) {
|
|
|
393
392
|
o[u] = t, s[u] = r;
|
|
394
393
|
}
|
|
395
394
|
let d = -1;
|
|
396
|
-
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] =
|
|
395
|
+
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] = Mt(r[d]);
|
|
397
396
|
else {
|
|
398
|
-
let e =
|
|
397
|
+
let e = Mt(r);
|
|
399
398
|
for (; ++d < l;) a[d] = e;
|
|
400
399
|
}
|
|
401
400
|
d = -1;
|
|
@@ -424,33 +423,33 @@ function jt(e, t) {
|
|
|
424
423
|
}
|
|
425
424
|
return m.join("\n");
|
|
426
425
|
}
|
|
427
|
-
function
|
|
426
|
+
function jt(e) {
|
|
428
427
|
return e == null ? "" : String(e);
|
|
429
428
|
}
|
|
430
|
-
function
|
|
429
|
+
function Mt(e) {
|
|
431
430
|
let t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
432
431
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
433
432
|
}
|
|
434
433
|
//#endregion
|
|
435
434
|
//#region node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
|
|
436
|
-
function
|
|
435
|
+
function Nt() {
|
|
437
436
|
return {
|
|
438
437
|
enter: {
|
|
439
|
-
table:
|
|
440
|
-
tableData: zt,
|
|
441
|
-
tableHeader: zt,
|
|
442
|
-
tableRow: Lt
|
|
443
|
-
},
|
|
444
|
-
exit: {
|
|
445
|
-
codeText: Bt,
|
|
446
|
-
table: It,
|
|
438
|
+
table: Pt,
|
|
447
439
|
tableData: Rt,
|
|
448
440
|
tableHeader: Rt,
|
|
449
|
-
tableRow:
|
|
441
|
+
tableRow: It
|
|
442
|
+
},
|
|
443
|
+
exit: {
|
|
444
|
+
codeText: zt,
|
|
445
|
+
table: Ft,
|
|
446
|
+
tableData: Lt,
|
|
447
|
+
tableHeader: Lt,
|
|
448
|
+
tableRow: Lt
|
|
450
449
|
}
|
|
451
450
|
};
|
|
452
451
|
}
|
|
453
|
-
function
|
|
452
|
+
function Pt(e) {
|
|
454
453
|
let t = e._align;
|
|
455
454
|
this.enter({
|
|
456
455
|
type: "table",
|
|
@@ -460,35 +459,35 @@ function Ft(e) {
|
|
|
460
459
|
children: []
|
|
461
460
|
}, e), this.data.inTable = !0;
|
|
462
461
|
}
|
|
463
|
-
function
|
|
462
|
+
function Ft(e) {
|
|
464
463
|
this.exit(e), this.data.inTable = void 0;
|
|
465
464
|
}
|
|
466
|
-
function
|
|
465
|
+
function It(e) {
|
|
467
466
|
this.enter({
|
|
468
467
|
type: "tableRow",
|
|
469
468
|
children: []
|
|
470
469
|
}, e);
|
|
471
470
|
}
|
|
472
|
-
function
|
|
471
|
+
function Lt(e) {
|
|
473
472
|
this.exit(e);
|
|
474
473
|
}
|
|
475
|
-
function
|
|
474
|
+
function Rt(e) {
|
|
476
475
|
this.enter({
|
|
477
476
|
type: "tableCell",
|
|
478
477
|
children: []
|
|
479
478
|
}, e);
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function zt(e) {
|
|
482
481
|
let t = this.resume();
|
|
483
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
482
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, Bt));
|
|
484
483
|
let n = this.stack[this.stack.length - 1];
|
|
485
484
|
n.type, n.value = t, this.exit(e);
|
|
486
485
|
}
|
|
487
|
-
function
|
|
486
|
+
function Bt(e, t) {
|
|
488
487
|
return t === "|" ? t : e;
|
|
489
488
|
}
|
|
490
|
-
function
|
|
491
|
-
let
|
|
489
|
+
function Vt(e) {
|
|
490
|
+
let n = e || {}, r = n.tableCellPadding, i = n.tablePipeAlign, a = n.stringLength, o = r ? " " : "|";
|
|
492
491
|
return {
|
|
493
492
|
unsafe: [
|
|
494
493
|
{
|
|
@@ -520,74 +519,74 @@ function Ht(e) {
|
|
|
520
519
|
}
|
|
521
520
|
],
|
|
522
521
|
handlers: {
|
|
523
|
-
inlineCode:
|
|
524
|
-
table:
|
|
525
|
-
tableCell:
|
|
526
|
-
tableRow:
|
|
522
|
+
inlineCode: p,
|
|
523
|
+
table: s,
|
|
524
|
+
tableCell: l,
|
|
525
|
+
tableRow: c
|
|
527
526
|
}
|
|
528
527
|
};
|
|
529
|
-
function o(e, t, n, r) {
|
|
530
|
-
return l(u(e, n, r), e.align);
|
|
531
|
-
}
|
|
532
528
|
function s(e, t, n, r) {
|
|
533
|
-
|
|
534
|
-
return i.slice(0, i.indexOf("\n"));
|
|
529
|
+
return u(d(e, n, r), e.align);
|
|
535
530
|
}
|
|
536
531
|
function c(e, t, n, r) {
|
|
537
|
-
let i =
|
|
532
|
+
let i = u([f(e, n, r)]);
|
|
533
|
+
return i.slice(0, i.indexOf("\n"));
|
|
534
|
+
}
|
|
535
|
+
function l(e, t, n, r) {
|
|
536
|
+
let i = n.enter("tableCell"), a = n.enter("phrasing"), s = n.containerPhrasing(e, {
|
|
538
537
|
...r,
|
|
539
|
-
before:
|
|
540
|
-
after:
|
|
538
|
+
before: o,
|
|
539
|
+
after: o
|
|
541
540
|
});
|
|
542
|
-
return
|
|
541
|
+
return a(), i(), s;
|
|
543
542
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
543
|
+
function u(e, t) {
|
|
544
|
+
return At(e, {
|
|
546
545
|
align: t,
|
|
547
|
-
alignDelimiters:
|
|
548
|
-
padding:
|
|
549
|
-
stringLength:
|
|
546
|
+
alignDelimiters: i,
|
|
547
|
+
padding: r,
|
|
548
|
+
stringLength: a
|
|
550
549
|
});
|
|
551
550
|
}
|
|
552
|
-
function
|
|
551
|
+
function d(e, t, n) {
|
|
553
552
|
let r = e.children, i = -1, a = [], o = t.enter("table");
|
|
554
|
-
for (; ++i < r.length;) a[i] =
|
|
553
|
+
for (; ++i < r.length;) a[i] = f(r[i], t, n);
|
|
555
554
|
return o(), a;
|
|
556
555
|
}
|
|
557
|
-
function
|
|
556
|
+
function f(e, t, n) {
|
|
558
557
|
let r = e.children, i = -1, a = [], o = t.enter("tableRow");
|
|
559
|
-
for (; ++i < r.length;) a[i] =
|
|
558
|
+
for (; ++i < r.length;) a[i] = l(r[i], e, t, n);
|
|
560
559
|
return o(), a;
|
|
561
560
|
}
|
|
562
|
-
function
|
|
563
|
-
let
|
|
564
|
-
return
|
|
561
|
+
function p(e, n, r) {
|
|
562
|
+
let i = t.inlineCode(e, n, r);
|
|
563
|
+
return r.stack.includes("tableCell") && (i = i.replace(/\|/g, "\\$&")), i;
|
|
565
564
|
}
|
|
566
565
|
}
|
|
567
566
|
//#endregion
|
|
568
567
|
//#region node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
569
|
-
function
|
|
568
|
+
function Ht() {
|
|
570
569
|
return { exit: {
|
|
571
|
-
taskListCheckValueChecked:
|
|
572
|
-
taskListCheckValueUnchecked:
|
|
573
|
-
paragraph:
|
|
570
|
+
taskListCheckValueChecked: Wt,
|
|
571
|
+
taskListCheckValueUnchecked: Wt,
|
|
572
|
+
paragraph: Gt
|
|
574
573
|
} };
|
|
575
574
|
}
|
|
576
|
-
function
|
|
575
|
+
function Ut() {
|
|
577
576
|
return {
|
|
578
577
|
unsafe: [{
|
|
579
578
|
atBreak: !0,
|
|
580
579
|
character: "-",
|
|
581
580
|
after: "[:|-]"
|
|
582
581
|
}],
|
|
583
|
-
handlers: { listItem:
|
|
582
|
+
handlers: { listItem: Kt }
|
|
584
583
|
};
|
|
585
584
|
}
|
|
586
|
-
function
|
|
585
|
+
function Wt(e) {
|
|
587
586
|
let t = this.stack[this.stack.length - 2];
|
|
588
587
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
589
588
|
}
|
|
590
|
-
function
|
|
589
|
+
function Gt(e) {
|
|
591
590
|
let t = this.stack[this.stack.length - 2];
|
|
592
591
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
593
592
|
let e = this.stack[this.stack.length - 1];
|
|
@@ -607,41 +606,44 @@ function Kt(e) {
|
|
|
607
606
|
}
|
|
608
607
|
this.exit(e);
|
|
609
608
|
}
|
|
610
|
-
function
|
|
611
|
-
let
|
|
612
|
-
|
|
613
|
-
let
|
|
614
|
-
...
|
|
615
|
-
...
|
|
609
|
+
function Kt(e, n, r, i) {
|
|
610
|
+
let a = e.children[0], o = typeof e.checked == "boolean" && a && a.type === "paragraph", s = "[" + (e.checked ? "x" : " ") + "] ", c = r.createTracker(i);
|
|
611
|
+
o && c.move(s);
|
|
612
|
+
let l = t.listItem(e, n, r, {
|
|
613
|
+
...i,
|
|
614
|
+
...c.current()
|
|
616
615
|
});
|
|
617
|
-
return
|
|
618
|
-
function
|
|
619
|
-
return e +
|
|
616
|
+
return o && (l = l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, u)), l;
|
|
617
|
+
function u(e) {
|
|
618
|
+
return e + s;
|
|
620
619
|
}
|
|
621
620
|
}
|
|
622
621
|
//#endregion
|
|
623
622
|
//#region node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
|
|
624
|
-
function
|
|
623
|
+
function qt() {
|
|
625
624
|
return [
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
Je(),
|
|
626
|
+
vt(),
|
|
627
|
+
Ct(),
|
|
628
|
+
Nt(),
|
|
629
|
+
Ht()
|
|
631
630
|
];
|
|
632
631
|
}
|
|
633
|
-
function
|
|
632
|
+
function Jt(e) {
|
|
634
633
|
return { extensions: [
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
634
|
+
Ye(),
|
|
635
|
+
yt(e),
|
|
636
|
+
wt(),
|
|
637
|
+
Vt(e),
|
|
638
|
+
Ut()
|
|
640
639
|
] };
|
|
641
640
|
}
|
|
642
641
|
//#endregion
|
|
643
642
|
//#region node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
644
|
-
var
|
|
643
|
+
var Yt = {
|
|
644
|
+
tokenize: sn,
|
|
645
|
+
partial: !0
|
|
646
|
+
}, Xt = {
|
|
645
647
|
tokenize: cn,
|
|
646
648
|
partial: !0
|
|
647
649
|
}, Zt = {
|
|
@@ -654,63 +656,60 @@ var Xt = {
|
|
|
654
656
|
tokenize: dn,
|
|
655
657
|
partial: !0
|
|
656
658
|
}, en = {
|
|
657
|
-
tokenize: fn,
|
|
658
|
-
partial: !0
|
|
659
|
-
}, tn = {
|
|
660
659
|
name: "wwwAutolink",
|
|
660
|
+
tokenize: an,
|
|
661
|
+
previous: fn
|
|
662
|
+
}, tn = {
|
|
663
|
+
name: "protocolAutolink",
|
|
661
664
|
tokenize: on,
|
|
662
665
|
previous: pn
|
|
663
|
-
},
|
|
664
|
-
name: "protocolAutolink",
|
|
665
|
-
tokenize: sn,
|
|
666
|
-
previous: mn
|
|
667
|
-
}, N = {
|
|
666
|
+
}, P = {
|
|
668
667
|
name: "emailAutolink",
|
|
669
|
-
tokenize:
|
|
670
|
-
previous:
|
|
671
|
-
},
|
|
672
|
-
function
|
|
673
|
-
return { text:
|
|
668
|
+
tokenize: rn,
|
|
669
|
+
previous: mn
|
|
670
|
+
}, F = {};
|
|
671
|
+
function nn() {
|
|
672
|
+
return { text: F };
|
|
674
673
|
}
|
|
675
|
-
for (var
|
|
676
|
-
|
|
677
|
-
function
|
|
674
|
+
for (var I = 48; I < 123;) F[I] = P, I++, I === 58 ? I = 65 : I === 91 && (I = 97);
|
|
675
|
+
F[43] = P, F[45] = P, F[46] = P, F[95] = P, F[72] = [P, tn], F[104] = [P, tn], F[87] = [P, en], F[119] = [P, en];
|
|
676
|
+
function rn(e, t, n) {
|
|
678
677
|
let r = this, i, a;
|
|
679
678
|
return o;
|
|
680
679
|
function o(t) {
|
|
681
|
-
return !
|
|
680
|
+
return !hn(t) || !mn.call(r, r.previous) || gn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
|
|
682
681
|
}
|
|
683
682
|
function s(t) {
|
|
684
|
-
return
|
|
683
|
+
return hn(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), c) : n(t);
|
|
685
684
|
}
|
|
686
685
|
function c(t) {
|
|
687
|
-
return t === 46 ? e.check(
|
|
686
|
+
return t === 46 ? e.check($t, d, u)(t) : t === 45 || t === 95 || l(t) ? (a = !0, e.consume(t), c) : d(t);
|
|
688
687
|
}
|
|
689
|
-
function
|
|
688
|
+
function u(t) {
|
|
690
689
|
return e.consume(t), i = !0, c;
|
|
691
690
|
}
|
|
692
|
-
function
|
|
693
|
-
return a && i &&
|
|
691
|
+
function d(o) {
|
|
692
|
+
return a && i && m(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
|
|
694
693
|
}
|
|
695
694
|
}
|
|
696
|
-
function
|
|
695
|
+
function an(e, t, n) {
|
|
697
696
|
let r = this;
|
|
698
697
|
return i;
|
|
699
698
|
function i(t) {
|
|
700
|
-
return t !== 87 && t !== 119 || !
|
|
699
|
+
return t !== 87 && t !== 119 || !fn.call(r, r.previous) || gn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Yt, e.attempt(Xt, e.attempt(Zt, a), n), n)(t));
|
|
701
700
|
}
|
|
702
701
|
function a(n) {
|
|
703
702
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
|
|
704
703
|
}
|
|
705
704
|
}
|
|
706
|
-
function
|
|
705
|
+
function on(e, t, n) {
|
|
707
706
|
let r = this, i = "", a = !1;
|
|
708
707
|
return o;
|
|
709
708
|
function o(t) {
|
|
710
|
-
return (t === 72 || t === 104) &&
|
|
709
|
+
return (t === 72 || t === 104) && pn.call(r, r.previous) && !gn(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(t), e.consume(t), s) : n(t);
|
|
711
710
|
}
|
|
712
711
|
function s(t) {
|
|
713
|
-
if (
|
|
712
|
+
if (m(t) && i.length < 5) return i += String.fromCodePoint(t), e.consume(t), s;
|
|
714
713
|
if (t === 58) {
|
|
715
714
|
let n = i.toLowerCase();
|
|
716
715
|
if (n === "http" || n === "https") return e.consume(t), c;
|
|
@@ -721,13 +720,13 @@ function sn(e, t, n) {
|
|
|
721
720
|
return t === 47 ? (e.consume(t), a ? l : (a = !0, c)) : n(t);
|
|
722
721
|
}
|
|
723
722
|
function l(t) {
|
|
724
|
-
return t === null || ee(t) ||
|
|
723
|
+
return t === null || ee(t) || u(t) || d(t) || C(t) ? n(t) : e.attempt(Xt, e.attempt(Zt, f), n)(t);
|
|
725
724
|
}
|
|
726
|
-
function
|
|
725
|
+
function f(n) {
|
|
727
726
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
|
|
728
727
|
}
|
|
729
728
|
}
|
|
730
|
-
function
|
|
729
|
+
function sn(e, t, n) {
|
|
731
730
|
let r = 0;
|
|
732
731
|
return i;
|
|
733
732
|
function i(t) {
|
|
@@ -737,11 +736,11 @@ function cn(e, t, n) {
|
|
|
737
736
|
return e === null ? n(e) : t(e);
|
|
738
737
|
}
|
|
739
738
|
}
|
|
740
|
-
function
|
|
739
|
+
function cn(e, t, n) {
|
|
741
740
|
let r, i, a;
|
|
742
741
|
return o;
|
|
743
742
|
function o(t) {
|
|
744
|
-
return t === 46 || t === 95 ? e.check(
|
|
743
|
+
return t === 46 || t === 95 ? e.check(Qt, c, s)(t) : t === null || u(t) || d(t) || t !== 45 && C(t) ? c(t) : (a = !0, e.consume(t), o);
|
|
745
744
|
}
|
|
746
745
|
function s(t) {
|
|
747
746
|
return t === 95 ? r = !0 : (i = r, r = void 0), e.consume(t), o;
|
|
@@ -750,53 +749,53 @@ function ln(e, t, n) {
|
|
|
750
749
|
return i || r || !a ? n(e) : t(e);
|
|
751
750
|
}
|
|
752
751
|
}
|
|
753
|
-
function
|
|
752
|
+
function ln(e, t) {
|
|
754
753
|
let n = 0, r = 0;
|
|
755
754
|
return i;
|
|
756
755
|
function i(o) {
|
|
757
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(
|
|
756
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(Qt, t, a)(o) : o === null || u(o) || d(o) ? t(o) : (e.consume(o), i);
|
|
758
757
|
}
|
|
759
758
|
function a(t) {
|
|
760
759
|
return t === 41 && r++, e.consume(t), i;
|
|
761
760
|
}
|
|
762
761
|
}
|
|
763
|
-
function
|
|
762
|
+
function un(e, t, n) {
|
|
764
763
|
return r;
|
|
765
764
|
function r(o) {
|
|
766
|
-
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null ||
|
|
765
|
+
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null || u(o) || d(o) ? t(o) : n(o);
|
|
767
766
|
}
|
|
768
767
|
function i(e) {
|
|
769
|
-
return e === null || e === 40 || e === 91 ||
|
|
768
|
+
return e === null || e === 40 || e === 91 || u(e) || d(e) ? t(e) : r(e);
|
|
770
769
|
}
|
|
771
770
|
function a(e) {
|
|
772
|
-
return
|
|
771
|
+
return m(e) ? o(e) : n(e);
|
|
773
772
|
}
|
|
774
773
|
function o(t) {
|
|
775
|
-
return t === 59 ? (e.consume(t), r) :
|
|
774
|
+
return t === 59 ? (e.consume(t), r) : m(t) ? (e.consume(t), o) : n(t);
|
|
776
775
|
}
|
|
777
776
|
}
|
|
778
|
-
function
|
|
777
|
+
function dn(e, t, n) {
|
|
779
778
|
return r;
|
|
780
779
|
function r(t) {
|
|
781
780
|
return e.consume(t), i;
|
|
782
781
|
}
|
|
783
782
|
function i(e) {
|
|
784
|
-
return
|
|
783
|
+
return l(e) ? n(e) : t(e);
|
|
785
784
|
}
|
|
786
785
|
}
|
|
786
|
+
function fn(e) {
|
|
787
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || u(e);
|
|
788
|
+
}
|
|
787
789
|
function pn(e) {
|
|
788
|
-
return
|
|
790
|
+
return !m(e);
|
|
789
791
|
}
|
|
790
792
|
function mn(e) {
|
|
791
|
-
return !
|
|
793
|
+
return !(e === 47 || hn(e));
|
|
792
794
|
}
|
|
793
795
|
function hn(e) {
|
|
794
|
-
return
|
|
796
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || l(e);
|
|
795
797
|
}
|
|
796
798
|
function gn(e) {
|
|
797
|
-
return e === 43 || e === 45 || e === 46 || e === 95 || y(e);
|
|
798
|
-
}
|
|
799
|
-
function _n(e) {
|
|
800
799
|
let t = e.length, n = !1;
|
|
801
800
|
for (; t--;) {
|
|
802
801
|
let r = e[t][1];
|
|
@@ -813,33 +812,33 @@ function _n(e) {
|
|
|
813
812
|
}
|
|
814
813
|
//#endregion
|
|
815
814
|
//#region node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
816
|
-
var
|
|
817
|
-
tokenize:
|
|
815
|
+
var _n = {
|
|
816
|
+
tokenize: Tn,
|
|
818
817
|
partial: !0
|
|
819
818
|
};
|
|
820
|
-
function
|
|
819
|
+
function vn() {
|
|
821
820
|
return {
|
|
822
821
|
document: { 91: {
|
|
823
822
|
name: "gfmFootnoteDefinition",
|
|
824
|
-
tokenize:
|
|
825
|
-
continuation: { tokenize:
|
|
826
|
-
exit:
|
|
823
|
+
tokenize: Sn,
|
|
824
|
+
continuation: { tokenize: Cn },
|
|
825
|
+
exit: wn
|
|
827
826
|
} },
|
|
828
827
|
text: {
|
|
829
828
|
91: {
|
|
830
829
|
name: "gfmFootnoteCall",
|
|
831
|
-
tokenize:
|
|
830
|
+
tokenize: xn
|
|
832
831
|
},
|
|
833
832
|
93: {
|
|
834
833
|
name: "gfmPotentialFootnoteCall",
|
|
835
834
|
add: "after",
|
|
836
|
-
tokenize:
|
|
837
|
-
resolveTo:
|
|
835
|
+
tokenize: yn,
|
|
836
|
+
resolveTo: bn
|
|
838
837
|
}
|
|
839
838
|
}
|
|
840
839
|
};
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function yn(e, t, n) {
|
|
843
842
|
let r = this, i = r.events.length, a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o;
|
|
844
843
|
for (; i--;) {
|
|
845
844
|
let e = r.events[i][1];
|
|
@@ -852,14 +851,14 @@ function bn(e, t, n) {
|
|
|
852
851
|
return s;
|
|
853
852
|
function s(i) {
|
|
854
853
|
if (!o || !o._balanced) return n(i);
|
|
855
|
-
let s =
|
|
854
|
+
let s = p(r.sliceSerialize({
|
|
856
855
|
start: o.end,
|
|
857
856
|
end: r.now()
|
|
858
857
|
}));
|
|
859
858
|
return s.codePointAt(0) !== 94 || !a.includes(s.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
|
|
860
859
|
}
|
|
861
860
|
}
|
|
862
|
-
function
|
|
861
|
+
function bn(e, t) {
|
|
863
862
|
let n = e.length;
|
|
864
863
|
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
865
864
|
e[n][1];
|
|
@@ -935,7 +934,7 @@ function xn(e, t) {
|
|
|
935
934
|
];
|
|
936
935
|
return e.splice(n, e.length - n + 1, ...s), e;
|
|
937
936
|
}
|
|
938
|
-
function
|
|
937
|
+
function xn(e, t, n) {
|
|
939
938
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a = 0, o;
|
|
940
939
|
return s;
|
|
941
940
|
function s(t) {
|
|
@@ -945,55 +944,55 @@ function Sn(e, t, n) {
|
|
|
945
944
|
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", l) : n(t);
|
|
946
945
|
}
|
|
947
946
|
function l(s) {
|
|
948
|
-
if (a > 999 || s === 93 && !o || s === null || s === 91 ||
|
|
947
|
+
if (a > 999 || s === 93 && !o || s === null || s === 91 || u(s)) return n(s);
|
|
949
948
|
if (s === 93) {
|
|
950
949
|
e.exit("chunkString");
|
|
951
950
|
let a = e.exit("gfmFootnoteCallString");
|
|
952
|
-
return i.includes(
|
|
951
|
+
return i.includes(p(r.sliceSerialize(a))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(s);
|
|
953
952
|
}
|
|
954
|
-
return
|
|
953
|
+
return u(s) || (o = !0), a++, e.consume(s), s === 92 ? d : l;
|
|
955
954
|
}
|
|
956
|
-
function
|
|
955
|
+
function d(t) {
|
|
957
956
|
return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++, l) : l(t);
|
|
958
957
|
}
|
|
959
958
|
}
|
|
960
|
-
function
|
|
959
|
+
function Sn(e, t, n) {
|
|
961
960
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a, o = 0, s;
|
|
962
961
|
return c;
|
|
963
962
|
function c(t) {
|
|
964
963
|
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), l;
|
|
965
964
|
}
|
|
966
965
|
function l(t) {
|
|
967
|
-
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string",
|
|
966
|
+
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", d) : n(t);
|
|
968
967
|
}
|
|
969
|
-
function
|
|
970
|
-
if (o > 999 || t === 93 && !s || t === null || t === 91 ||
|
|
968
|
+
function d(t) {
|
|
969
|
+
if (o > 999 || t === 93 && !s || t === null || t === 91 || u(t)) return n(t);
|
|
971
970
|
if (t === 93) {
|
|
972
971
|
e.exit("chunkString");
|
|
973
972
|
let n = e.exit("gfmFootnoteDefinitionLabelString");
|
|
974
|
-
return a =
|
|
973
|
+
return a = p(r.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
|
|
975
974
|
}
|
|
976
|
-
return
|
|
977
|
-
}
|
|
978
|
-
function d(t) {
|
|
979
|
-
return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, u) : u(t);
|
|
975
|
+
return u(t) || (s = !0), o++, e.consume(t), t === 92 ? f : d;
|
|
980
976
|
}
|
|
981
977
|
function f(t) {
|
|
982
|
-
return t ===
|
|
978
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, d) : d(t);
|
|
979
|
+
}
|
|
980
|
+
function m(t) {
|
|
981
|
+
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(a) || i.push(a), y(e, h, "gfmFootnoteDefinitionWhitespace")) : n(t);
|
|
983
982
|
}
|
|
984
|
-
function
|
|
983
|
+
function h(e) {
|
|
985
984
|
return t(e);
|
|
986
985
|
}
|
|
987
986
|
}
|
|
988
|
-
function
|
|
989
|
-
return e.check(
|
|
987
|
+
function Cn(e, t, n) {
|
|
988
|
+
return e.check(f, t, e.attempt(_n, t, n));
|
|
990
989
|
}
|
|
991
|
-
function
|
|
990
|
+
function wn(e) {
|
|
992
991
|
e.exit("gfmFootnoteDefinition");
|
|
993
992
|
}
|
|
994
|
-
function
|
|
993
|
+
function Tn(e, t, n) {
|
|
995
994
|
let r = this;
|
|
996
|
-
return
|
|
995
|
+
return y(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
997
996
|
function i(e) {
|
|
998
997
|
let i = r.events[r.events.length - 1];
|
|
999
998
|
return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(e) : n(e);
|
|
@@ -1001,7 +1000,7 @@ function En(e, t, n) {
|
|
|
1001
1000
|
}
|
|
1002
1001
|
//#endregion
|
|
1003
1002
|
//#region node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
1004
|
-
function
|
|
1003
|
+
function En(e) {
|
|
1005
1004
|
let t = (e || {}).singleTilde, n = {
|
|
1006
1005
|
name: "strikethrough",
|
|
1007
1006
|
tokenize: i,
|
|
@@ -1048,7 +1047,7 @@ function Dn(e) {
|
|
|
1048
1047
|
t
|
|
1049
1048
|
]
|
|
1050
1049
|
], s = t.parser.constructs.insideSpan.null;
|
|
1051
|
-
s && _(o, o.length, 0,
|
|
1050
|
+
s && _(o, o.length, 0, S(s, e.slice(r + 1, n), t)), _(o, o.length, 0, [
|
|
1052
1051
|
[
|
|
1053
1052
|
"exit",
|
|
1054
1053
|
a,
|
|
@@ -1093,12 +1092,12 @@ function Dn(e) {
|
|
|
1093
1092
|
}
|
|
1094
1093
|
//#endregion
|
|
1095
1094
|
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
1096
|
-
var
|
|
1095
|
+
var Dn = class {
|
|
1097
1096
|
constructor() {
|
|
1098
1097
|
this.map = [];
|
|
1099
1098
|
}
|
|
1100
1099
|
add(e, t, n) {
|
|
1101
|
-
|
|
1100
|
+
On(this, e, t, n);
|
|
1102
1101
|
}
|
|
1103
1102
|
consume(e) {
|
|
1104
1103
|
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
@@ -1116,7 +1115,7 @@ var On = class {
|
|
|
1116
1115
|
this.map.length = 0;
|
|
1117
1116
|
}
|
|
1118
1117
|
};
|
|
1119
|
-
function
|
|
1118
|
+
function On(e, t, n, r) {
|
|
1120
1119
|
let i = 0;
|
|
1121
1120
|
if (!(n === 0 && r.length === 0)) {
|
|
1122
1121
|
for (; i < e.map.length;) {
|
|
@@ -1135,7 +1134,7 @@ function kn(e, t, n, r) {
|
|
|
1135
1134
|
}
|
|
1136
1135
|
//#endregion
|
|
1137
1136
|
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
1138
|
-
function
|
|
1137
|
+
function kn(e, t) {
|
|
1139
1138
|
let n = !1, r = [];
|
|
1140
1139
|
for (; t < e.length;) {
|
|
1141
1140
|
let i = e[t];
|
|
@@ -1154,14 +1153,14 @@ function An(e, t) {
|
|
|
1154
1153
|
}
|
|
1155
1154
|
//#endregion
|
|
1156
1155
|
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
1157
|
-
function
|
|
1156
|
+
function An() {
|
|
1158
1157
|
return { flow: { null: {
|
|
1159
1158
|
name: "table",
|
|
1160
|
-
tokenize:
|
|
1161
|
-
resolveAll:
|
|
1159
|
+
tokenize: jn,
|
|
1160
|
+
resolveAll: Mn
|
|
1162
1161
|
} } };
|
|
1163
1162
|
}
|
|
1164
|
-
function
|
|
1163
|
+
function jn(e, t, n) {
|
|
1165
1164
|
let r = this, i = 0, a = 0, o;
|
|
1166
1165
|
return s;
|
|
1167
1166
|
function s(e) {
|
|
@@ -1171,65 +1170,65 @@ function Mn(e, t, n) {
|
|
|
1171
1170
|
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
1172
1171
|
else break;
|
|
1173
1172
|
}
|
|
1174
|
-
let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ?
|
|
1175
|
-
return a ===
|
|
1173
|
+
let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ? w : c;
|
|
1174
|
+
return a === w && r.parser.lazy[r.now().line] ? n(e) : a(e);
|
|
1176
1175
|
}
|
|
1177
1176
|
function c(t) {
|
|
1178
1177
|
return e.enter("tableHead"), e.enter("tableRow"), l(t);
|
|
1179
1178
|
}
|
|
1180
1179
|
function l(e) {
|
|
1181
|
-
return e === 124 ?
|
|
1182
|
-
}
|
|
1183
|
-
function u(t) {
|
|
1184
|
-
return t === null ? n(t) : m(t) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ee) : n(t) : C(t) ? p(e, u, "whitespace")(t) : (a += 1, o && (o = !1, i += 1), t === 124 ? (e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), o = !0, u) : (e.enter("data"), d(t)));
|
|
1180
|
+
return e === 124 ? d(e) : (o = !0, a += 1, d(e));
|
|
1185
1181
|
}
|
|
1186
1182
|
function d(t) {
|
|
1187
|
-
return t === null
|
|
1183
|
+
return t === null ? n(t) : x(t) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), m) : n(t) : g(t) ? y(e, d, "whitespace")(t) : (a += 1, o && (o = !1, i += 1), t === 124 ? (e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), o = !0, d) : (e.enter("data"), f(t)));
|
|
1188
1184
|
}
|
|
1189
1185
|
function f(t) {
|
|
1190
|
-
return t ===
|
|
1186
|
+
return t === null || t === 124 || u(t) ? (e.exit("data"), d(t)) : (e.consume(t), t === 92 ? p : f);
|
|
1191
1187
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return
|
|
1188
|
+
function p(t) {
|
|
1189
|
+
return t === 92 || t === 124 ? (e.consume(t), f) : f(t);
|
|
1194
1190
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
1191
|
+
function m(t) {
|
|
1192
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(t) : (e.enter("tableDelimiterRow"), o = !1, g(t) ? y(e, h, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : h(t));
|
|
1197
1193
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return
|
|
1194
|
+
function h(t) {
|
|
1195
|
+
return t === 45 || t === 58 ? v(t) : t === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), _) : C(t);
|
|
1200
1196
|
}
|
|
1201
1197
|
function _(t) {
|
|
1202
|
-
return t
|
|
1198
|
+
return g(t) ? y(e, v, "whitespace")(t) : v(t);
|
|
1203
1199
|
}
|
|
1204
1200
|
function v(t) {
|
|
1205
|
-
return t ===
|
|
1201
|
+
return t === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), ee) : t === 45 ? (a += 1, ee(t)) : t === null || x(t) ? S(t) : C(t);
|
|
1202
|
+
}
|
|
1203
|
+
function ee(t) {
|
|
1204
|
+
return t === 45 ? (e.enter("tableDelimiterFiller"), te(t)) : C(t);
|
|
1206
1205
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return t === 45 ? (e.consume(t),
|
|
1206
|
+
function te(t) {
|
|
1207
|
+
return t === 45 ? (e.consume(t), te) : t === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), b) : (e.exit("tableDelimiterFiller"), b(t));
|
|
1209
1208
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1209
|
+
function b(t) {
|
|
1210
|
+
return g(t) ? y(e, S, "whitespace")(t) : S(t);
|
|
1212
1211
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return n === 124 ? h(n) : n === null ||
|
|
1212
|
+
function S(n) {
|
|
1213
|
+
return n === 124 ? h(n) : n === null || x(n) ? !o || i !== a ? C(n) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(n)) : C(n);
|
|
1215
1214
|
}
|
|
1216
|
-
function
|
|
1215
|
+
function C(e) {
|
|
1217
1216
|
return n(e);
|
|
1218
1217
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return e.enter("tableRow"),
|
|
1218
|
+
function w(t) {
|
|
1219
|
+
return e.enter("tableRow"), T(t);
|
|
1221
1220
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"),
|
|
1221
|
+
function T(n) {
|
|
1222
|
+
return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), T) : n === null || x(n) ? (e.exit("tableRow"), t(n)) : g(n) ? y(e, T, "whitespace")(n) : (e.enter("data"), E(n));
|
|
1224
1223
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return t === null || t === 124 ||
|
|
1224
|
+
function E(t) {
|
|
1225
|
+
return t === null || t === 124 || u(t) ? (e.exit("data"), T(t)) : (e.consume(t), t === 92 ? ne : E);
|
|
1227
1226
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return t === 92 || t === 124 ? (e.consume(t),
|
|
1227
|
+
function ne(t) {
|
|
1228
|
+
return t === 92 || t === 124 ? (e.consume(t), E) : E(t);
|
|
1230
1229
|
}
|
|
1231
1230
|
}
|
|
1232
|
-
function
|
|
1231
|
+
function Mn(e, t) {
|
|
1233
1232
|
let n = -1, r = !0, i = 0, a = [
|
|
1234
1233
|
0,
|
|
1235
1234
|
0,
|
|
@@ -1240,10 +1239,10 @@ function Nn(e, t) {
|
|
|
1240
1239
|
0,
|
|
1241
1240
|
0,
|
|
1242
1241
|
0
|
|
1243
|
-
], s = !1, c = 0, l, u, d, f = new
|
|
1242
|
+
], s = !1, c = 0, l, u, d, f = new Dn();
|
|
1244
1243
|
for (; ++n < e.length;) {
|
|
1245
1244
|
let p = e[n], m = p[1];
|
|
1246
|
-
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (
|
|
1245
|
+
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (Nn(f, t, c, l, u), u = void 0, c = 0), l = {
|
|
1247
1246
|
type: "table",
|
|
1248
1247
|
start: Object.assign({}, m.start),
|
|
1249
1248
|
end: Object.assign({}, m.end)
|
|
@@ -1269,32 +1268,32 @@ function Nn(e, t) {
|
|
|
1269
1268
|
"enter",
|
|
1270
1269
|
u,
|
|
1271
1270
|
t
|
|
1272
|
-
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d =
|
|
1271
|
+
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d = L(f, t, a, i, void 0, d), a = [
|
|
1273
1272
|
0,
|
|
1274
1273
|
0,
|
|
1275
1274
|
0,
|
|
1276
1275
|
0
|
|
1277
|
-
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d =
|
|
1276
|
+
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d = L(f, t, a, i, void 0, d)), a = o, o = [
|
|
1278
1277
|
a[1],
|
|
1279
1278
|
n,
|
|
1280
1279
|
0,
|
|
1281
1280
|
0
|
|
1282
|
-
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d =
|
|
1281
|
+
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d = L(f, t, o, i, n, d)) : (o[0] = o[1], d = L(f, t, a, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
|
|
1283
1282
|
}
|
|
1284
|
-
for (c !== 0 &&
|
|
1283
|
+
for (c !== 0 && Nn(f, t, c, l, u), f.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
1285
1284
|
let e = t.events[n];
|
|
1286
|
-
e[0] === "enter" && e[1].type === "table" && (e[1]._align =
|
|
1285
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = kn(t.events, n));
|
|
1287
1286
|
}
|
|
1288
1287
|
return e;
|
|
1289
1288
|
}
|
|
1290
|
-
function
|
|
1289
|
+
function L(e, t, n, r, i, a) {
|
|
1291
1290
|
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
1292
|
-
n[0] !== 0 && (a.end = Object.assign({},
|
|
1291
|
+
n[0] !== 0 && (a.end = Object.assign({}, R(t.events, n[0])), e.add(n[0], 0, [[
|
|
1293
1292
|
"exit",
|
|
1294
1293
|
a,
|
|
1295
1294
|
t
|
|
1296
1295
|
]]));
|
|
1297
|
-
let s =
|
|
1296
|
+
let s = R(t.events, n[1]);
|
|
1298
1297
|
if (a = {
|
|
1299
1298
|
type: o,
|
|
1300
1299
|
start: Object.assign({}, s),
|
|
@@ -1304,7 +1303,7 @@ function I(e, t, n, r, i, a) {
|
|
|
1304
1303
|
a,
|
|
1305
1304
|
t
|
|
1306
1305
|
]]), n[2] !== 0) {
|
|
1307
|
-
let i =
|
|
1306
|
+
let i = R(t.events, n[2]), a = R(t.events, n[3]), o = {
|
|
1308
1307
|
type: "tableContent",
|
|
1309
1308
|
start: Object.assign({}, i),
|
|
1310
1309
|
end: Object.assign({}, a)
|
|
@@ -1326,14 +1325,14 @@ function I(e, t, n, r, i, a) {
|
|
|
1326
1325
|
t
|
|
1327
1326
|
]]);
|
|
1328
1327
|
}
|
|
1329
|
-
return i !== void 0 && (a.end = Object.assign({},
|
|
1328
|
+
return i !== void 0 && (a.end = Object.assign({}, R(t.events, i)), e.add(i, 0, [[
|
|
1330
1329
|
"exit",
|
|
1331
1330
|
a,
|
|
1332
1331
|
t
|
|
1333
1332
|
]]), a = void 0), a;
|
|
1334
1333
|
}
|
|
1335
|
-
function
|
|
1336
|
-
let a = [], o =
|
|
1334
|
+
function Nn(e, t, n, r, i) {
|
|
1335
|
+
let a = [], o = R(t.events, n);
|
|
1337
1336
|
i && (i.end = Object.assign({}, o), a.push([
|
|
1338
1337
|
"exit",
|
|
1339
1338
|
i,
|
|
@@ -1344,78 +1343,78 @@ function Pn(e, t, n, r, i) {
|
|
|
1344
1343
|
t
|
|
1345
1344
|
]), e.add(n + 1, 0, a);
|
|
1346
1345
|
}
|
|
1347
|
-
function
|
|
1346
|
+
function R(e, t) {
|
|
1348
1347
|
let n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
1349
1348
|
return n[1][r];
|
|
1350
1349
|
}
|
|
1351
1350
|
//#endregion
|
|
1352
1351
|
//#region node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
1353
|
-
var
|
|
1352
|
+
var Pn = {
|
|
1354
1353
|
name: "tasklistCheck",
|
|
1355
|
-
tokenize:
|
|
1354
|
+
tokenize: In
|
|
1356
1355
|
};
|
|
1357
|
-
function
|
|
1358
|
-
return { text: { 91:
|
|
1356
|
+
function Fn() {
|
|
1357
|
+
return { text: { 91: Pn } };
|
|
1359
1358
|
}
|
|
1360
|
-
function
|
|
1359
|
+
function In(e, t, n) {
|
|
1361
1360
|
let r = this;
|
|
1362
1361
|
return i;
|
|
1363
1362
|
function i(t) {
|
|
1364
1363
|
return r.previous !== null || !r._gfmTasklistFirstContentOfListItem ? n(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), a);
|
|
1365
1364
|
}
|
|
1366
1365
|
function a(t) {
|
|
1367
|
-
return
|
|
1366
|
+
return u(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), o) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), o) : n(t);
|
|
1368
1367
|
}
|
|
1369
1368
|
function o(t) {
|
|
1370
1369
|
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), s) : n(t);
|
|
1371
1370
|
}
|
|
1372
1371
|
function s(r) {
|
|
1373
|
-
return
|
|
1372
|
+
return x(r) ? t(r) : g(r) ? e.check({ tokenize: Ln }, t, n)(r) : n(r);
|
|
1374
1373
|
}
|
|
1375
1374
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1375
|
+
function Ln(e, t, n) {
|
|
1376
|
+
return y(e, r, "whitespace");
|
|
1378
1377
|
function r(e) {
|
|
1379
1378
|
return e === null ? n(e) : t(e);
|
|
1380
1379
|
}
|
|
1381
1380
|
}
|
|
1382
1381
|
//#endregion
|
|
1383
1382
|
//#region node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js
|
|
1384
|
-
function
|
|
1383
|
+
function Rn(e) {
|
|
1385
1384
|
return te([
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1385
|
+
nn(),
|
|
1386
|
+
vn(),
|
|
1387
|
+
En(e),
|
|
1388
|
+
An(),
|
|
1389
|
+
Fn()
|
|
1391
1390
|
]);
|
|
1392
1391
|
}
|
|
1393
1392
|
//#endregion
|
|
1394
1393
|
//#region node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
1395
|
-
var
|
|
1396
|
-
function
|
|
1397
|
-
let t = this, n = e ||
|
|
1398
|
-
i.push(
|
|
1394
|
+
var zn = {};
|
|
1395
|
+
function Bn(e) {
|
|
1396
|
+
let t = this, n = e || zn, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
1397
|
+
i.push(Rn(n)), a.push(qt()), o.push(Jt(n));
|
|
1399
1398
|
}
|
|
1400
1399
|
//#endregion
|
|
1401
|
-
//#region node_modules/.pnpm/@milkdown+preset-gfm@7.
|
|
1402
|
-
function
|
|
1400
|
+
//#region node_modules/.pnpm/@milkdown+preset-gfm@7.21.1/node_modules/@milkdown/preset-gfm/lib/index.js
|
|
1401
|
+
function z(e, t) {
|
|
1403
1402
|
return Object.assign(e, { meta: {
|
|
1404
1403
|
package: "@milkdown/preset-gfm",
|
|
1405
1404
|
...t
|
|
1406
1405
|
} }), e;
|
|
1407
1406
|
}
|
|
1408
|
-
var
|
|
1409
|
-
|
|
1407
|
+
var B = ce("strike_through");
|
|
1408
|
+
z(B, {
|
|
1410
1409
|
displayName: "Attr<strikethrough>",
|
|
1411
1410
|
group: "Strikethrough"
|
|
1412
1411
|
});
|
|
1413
|
-
var
|
|
1412
|
+
var V = oe("strike_through", (e) => ({
|
|
1414
1413
|
parseDOM: [{ tag: "del" }, {
|
|
1415
1414
|
style: "text-decoration",
|
|
1416
1415
|
getAttrs: (e) => e === "line-through"
|
|
1417
1416
|
}],
|
|
1418
|
-
toDOM: (t) => ["del", e.get(
|
|
1417
|
+
toDOM: (t) => ["del", e.get(B.key)(t)],
|
|
1419
1418
|
parseMarkdown: {
|
|
1420
1419
|
match: (e) => e.type === "delete",
|
|
1421
1420
|
runner: (e, t, n) => {
|
|
@@ -1429,38 +1428,38 @@ var B = se("strike_through", (e) => ({
|
|
|
1429
1428
|
}
|
|
1430
1429
|
}
|
|
1431
1430
|
}));
|
|
1432
|
-
|
|
1431
|
+
z(V.mark, {
|
|
1433
1432
|
displayName: "MarkSchema<strikethrough>",
|
|
1434
1433
|
group: "Strikethrough"
|
|
1435
|
-
}),
|
|
1434
|
+
}), z(V.ctx, {
|
|
1436
1435
|
displayName: "MarkSchemaCtx<strikethrough>",
|
|
1437
1436
|
group: "Strikethrough"
|
|
1438
1437
|
});
|
|
1439
|
-
var
|
|
1440
|
-
|
|
1438
|
+
var H = k("ToggleStrikeThrough", (e) => () => ae(V.type(e)));
|
|
1439
|
+
z(H, {
|
|
1441
1440
|
displayName: "Command<ToggleStrikethrough>",
|
|
1442
1441
|
group: "Strikethrough"
|
|
1443
1442
|
});
|
|
1444
|
-
var
|
|
1445
|
-
|
|
1443
|
+
var Vn = de((t) => e(/(?<![\w:/])(~{1,2})(.+?)\1(?!\w|\/)/, V.type(t)));
|
|
1444
|
+
z(Vn, {
|
|
1446
1445
|
displayName: "InputRule<strikethrough>",
|
|
1447
1446
|
group: "Strikethrough"
|
|
1448
1447
|
});
|
|
1449
|
-
var
|
|
1448
|
+
var U = ue("strikeThroughKeymap", { ToggleStrikethrough: {
|
|
1450
1449
|
shortcuts: "Mod-Alt-x",
|
|
1451
1450
|
command: (e) => {
|
|
1452
|
-
let t = e.get(
|
|
1453
|
-
return () => t.call(
|
|
1451
|
+
let t = e.get(b);
|
|
1452
|
+
return () => t.call(H.key);
|
|
1454
1453
|
}
|
|
1455
1454
|
} });
|
|
1456
|
-
|
|
1455
|
+
z(U.ctx, {
|
|
1457
1456
|
displayName: "KeymapCtx<strikethrough>",
|
|
1458
1457
|
group: "Strikethrough"
|
|
1459
|
-
}),
|
|
1458
|
+
}), z(U.shortcuts, {
|
|
1460
1459
|
displayName: "Keymap<strikethrough>",
|
|
1461
1460
|
group: "Strikethrough"
|
|
1462
1461
|
});
|
|
1463
|
-
var
|
|
1462
|
+
var W = Oe({
|
|
1464
1463
|
tableGroup: "block",
|
|
1465
1464
|
cellContent: "paragraph",
|
|
1466
1465
|
cellAttributes: { alignment: {
|
|
@@ -1470,8 +1469,8 @@ var U = ke({
|
|
|
1470
1469
|
t.style = `text-align: ${e || "left"}`;
|
|
1471
1470
|
}
|
|
1472
1471
|
} }
|
|
1473
|
-
}),
|
|
1474
|
-
...
|
|
1472
|
+
}), G = O("table", () => ({
|
|
1473
|
+
...W.table,
|
|
1475
1474
|
content: "table_header_row table_row+",
|
|
1476
1475
|
disableDropCursor: !0,
|
|
1477
1476
|
parseMarkdown: {
|
|
@@ -1497,15 +1496,15 @@ var U = ke({
|
|
|
1497
1496
|
}
|
|
1498
1497
|
}
|
|
1499
1498
|
}));
|
|
1500
|
-
|
|
1499
|
+
z(G.node, {
|
|
1501
1500
|
displayName: "NodeSchema<table>",
|
|
1502
1501
|
group: "Table"
|
|
1503
|
-
}),
|
|
1502
|
+
}), z(G.ctx, {
|
|
1504
1503
|
displayName: "NodeSchemaCtx<table>",
|
|
1505
1504
|
group: "Table"
|
|
1506
1505
|
});
|
|
1507
|
-
var
|
|
1508
|
-
...
|
|
1506
|
+
var K = O("table_header_row", () => ({
|
|
1507
|
+
...W.table_row,
|
|
1509
1508
|
disableDropCursor: !0,
|
|
1510
1509
|
content: "(table_header)*",
|
|
1511
1510
|
parseDOM: [{ tag: "tr[data-is-header]" }, {
|
|
@@ -1537,15 +1536,15 @@ var G = D("table_header_row", () => ({
|
|
|
1537
1536
|
}
|
|
1538
1537
|
}
|
|
1539
1538
|
}));
|
|
1540
|
-
|
|
1539
|
+
z(K.node, {
|
|
1541
1540
|
displayName: "NodeSchema<tableHeaderRow>",
|
|
1542
1541
|
group: "Table"
|
|
1543
|
-
}),
|
|
1542
|
+
}), z(K.ctx, {
|
|
1544
1543
|
displayName: "NodeSchemaCtx<tableHeaderRow>",
|
|
1545
1544
|
group: "Table"
|
|
1546
1545
|
});
|
|
1547
|
-
var
|
|
1548
|
-
...
|
|
1546
|
+
var q = O("table_row", () => ({
|
|
1547
|
+
...W.table_row,
|
|
1549
1548
|
disableDropCursor: !0,
|
|
1550
1549
|
content: "(table_cell)*",
|
|
1551
1550
|
parseMarkdown: {
|
|
@@ -1565,15 +1564,15 @@ var K = D("table_row", () => ({
|
|
|
1565
1564
|
}
|
|
1566
1565
|
}
|
|
1567
1566
|
}));
|
|
1568
|
-
|
|
1567
|
+
z(q.node, {
|
|
1569
1568
|
displayName: "NodeSchema<tableRow>",
|
|
1570
1569
|
group: "Table"
|
|
1571
|
-
}),
|
|
1570
|
+
}), z(q.ctx, {
|
|
1572
1571
|
displayName: "NodeSchemaCtx<tableRow>",
|
|
1573
1572
|
group: "Table"
|
|
1574
1573
|
});
|
|
1575
|
-
var
|
|
1576
|
-
...
|
|
1574
|
+
var J = O("table_cell", () => ({
|
|
1575
|
+
...W.table_cell,
|
|
1577
1576
|
disableDropCursor: !0,
|
|
1578
1577
|
parseMarkdown: {
|
|
1579
1578
|
match: (e) => e.type === "tableCell" && !e.isHeader,
|
|
@@ -1589,15 +1588,15 @@ var q = D("table_cell", () => ({
|
|
|
1589
1588
|
}
|
|
1590
1589
|
}
|
|
1591
1590
|
}));
|
|
1592
|
-
|
|
1591
|
+
z(J.node, {
|
|
1593
1592
|
displayName: "NodeSchema<tableCell>",
|
|
1594
1593
|
group: "Table"
|
|
1595
|
-
}),
|
|
1594
|
+
}), z(J.ctx, {
|
|
1596
1595
|
displayName: "NodeSchemaCtx<tableCell>",
|
|
1597
1596
|
group: "Table"
|
|
1598
1597
|
});
|
|
1599
|
-
var
|
|
1600
|
-
...
|
|
1598
|
+
var Y = O("table_header", () => ({
|
|
1599
|
+
...W.table_header,
|
|
1601
1600
|
disableDropCursor: !0,
|
|
1602
1601
|
parseMarkdown: {
|
|
1603
1602
|
match: (e) => e.type === "tableCell" && !!e.isHeader,
|
|
@@ -1613,21 +1612,21 @@ var J = D("table_header", () => ({
|
|
|
1613
1612
|
}
|
|
1614
1613
|
}
|
|
1615
1614
|
}));
|
|
1616
|
-
|
|
1615
|
+
z(Y.node, {
|
|
1617
1616
|
displayName: "NodeSchema<tableHeader>",
|
|
1618
1617
|
group: "Table"
|
|
1619
|
-
}),
|
|
1618
|
+
}), z(Y.ctx, {
|
|
1620
1619
|
displayName: "NodeSchemaCtx<tableHeader>",
|
|
1621
1620
|
group: "Table"
|
|
1622
1621
|
});
|
|
1623
|
-
function
|
|
1624
|
-
let r = Array(n).fill(0).map(() =>
|
|
1625
|
-
return
|
|
1622
|
+
function Hn(e, t = 3, n = 3) {
|
|
1623
|
+
let r = Array(n).fill(0).map(() => J.type(e).createAndFill()), i = Array(n).fill(0).map(() => Y.type(e).createAndFill()), a = Array(t).fill(0).map((t, n) => n === 0 ? K.type(e).create(null, i) : q.type(e).create(null, r));
|
|
1624
|
+
return G.type(e).create(null, a);
|
|
1626
1625
|
}
|
|
1627
|
-
function
|
|
1628
|
-
let n =
|
|
1626
|
+
function Un(e, t) {
|
|
1627
|
+
let n = ge(t.$from);
|
|
1629
1628
|
if (!n) return;
|
|
1630
|
-
let r =
|
|
1629
|
+
let r = j.get(n.node);
|
|
1631
1630
|
return (Array.isArray(e) ? e : [e]).filter((e) => e >= 0 && e <= r.width - 1).flatMap((e) => r.cellsInRect({
|
|
1632
1631
|
left: e,
|
|
1633
1632
|
right: e + 1,
|
|
@@ -1643,10 +1642,10 @@ function Wn(e, t) {
|
|
|
1643
1642
|
};
|
|
1644
1643
|
}));
|
|
1645
1644
|
}
|
|
1646
|
-
function
|
|
1647
|
-
let n =
|
|
1645
|
+
function Wn(e, t) {
|
|
1646
|
+
let n = ge(t.$from);
|
|
1648
1647
|
if (!n) return;
|
|
1649
|
-
let r =
|
|
1648
|
+
let r = j.get(n.node);
|
|
1650
1649
|
return (Array.isArray(e) ? e : [e]).filter((e) => e >= 0 && e <= r.height - 1).flatMap((e) => r.cellsInRect({
|
|
1651
1650
|
left: 0,
|
|
1652
1651
|
right: r.width,
|
|
@@ -1662,35 +1661,35 @@ function Gn(e, t) {
|
|
|
1662
1661
|
};
|
|
1663
1662
|
}));
|
|
1664
1663
|
}
|
|
1665
|
-
function
|
|
1666
|
-
return (t,
|
|
1667
|
-
|
|
1668
|
-
let
|
|
1669
|
-
node:
|
|
1670
|
-
from:
|
|
1664
|
+
function Gn(e) {
|
|
1665
|
+
return (t, r) => (a) => {
|
|
1666
|
+
r ??= a.selection.from;
|
|
1667
|
+
let o = a.doc.resolve(r), s = n((e) => e.type.name === "table")(o), c = s ? {
|
|
1668
|
+
node: s.node,
|
|
1669
|
+
from: s.start
|
|
1671
1670
|
} : void 0, l = e === "row";
|
|
1672
|
-
if (
|
|
1673
|
-
let e =
|
|
1671
|
+
if (c) {
|
|
1672
|
+
let e = j.get(c.node);
|
|
1674
1673
|
if (t >= 0 && t < (l ? e.height : e.width)) {
|
|
1675
|
-
let n = e.positionAt(l ? t : e.height - 1, l ? e.width - 1 : t,
|
|
1676
|
-
return
|
|
1674
|
+
let n = e.positionAt(l ? t : e.height - 1, l ? e.width - 1 : t, c.node), r = a.doc.resolve(c.from + n), o = l ? M.rowSelection : M.colSelection, s = e.positionAt(l ? t : 0, l ? 0 : t, c.node), u = a.doc.resolve(c.from + s);
|
|
1675
|
+
return i(a.setSelection(o(r, u)));
|
|
1677
1676
|
}
|
|
1678
1677
|
}
|
|
1679
|
-
return
|
|
1678
|
+
return a;
|
|
1680
1679
|
};
|
|
1681
1680
|
}
|
|
1682
|
-
var
|
|
1683
|
-
function
|
|
1681
|
+
var Kn = Gn("row"), qn = Gn("col");
|
|
1682
|
+
function Jn(e, t, { map: n, tableStart: r, table: i }, a) {
|
|
1684
1683
|
let o = Array(a).fill(0).reduce((e, t, n) => e + i.child(n).nodeSize, r), s = Array(n.width).fill(0).map((t, r) => {
|
|
1685
1684
|
let a = i.nodeAt(n.map[r]);
|
|
1686
|
-
return
|
|
1685
|
+
return J.type(e).createAndFill({ alignment: a?.attrs.alignment });
|
|
1687
1686
|
});
|
|
1688
|
-
return t.insert(o,
|
|
1687
|
+
return t.insert(o, q.type(e).create(null, s)), t;
|
|
1689
1688
|
}
|
|
1690
|
-
function
|
|
1691
|
-
let t =
|
|
1689
|
+
function Yn(e) {
|
|
1690
|
+
let t = ge(e.$from);
|
|
1692
1691
|
if (!t) return;
|
|
1693
|
-
let n =
|
|
1692
|
+
let n = j.get(t.node);
|
|
1694
1693
|
return n.cellsInRect({
|
|
1695
1694
|
left: 0,
|
|
1696
1695
|
right: n.width,
|
|
@@ -1705,238 +1704,238 @@ function Xn(e) {
|
|
|
1705
1704
|
};
|
|
1706
1705
|
});
|
|
1707
1706
|
}
|
|
1708
|
-
function
|
|
1709
|
-
let t =
|
|
1707
|
+
function Xn(e) {
|
|
1708
|
+
let t = Yn(e.selection);
|
|
1710
1709
|
if (t && t[0]) {
|
|
1711
1710
|
let n = e.doc.resolve(t[0].pos), r = t[t.length - 1];
|
|
1712
1711
|
if (r) {
|
|
1713
1712
|
let t = e.doc.resolve(r.pos);
|
|
1714
|
-
return
|
|
1713
|
+
return i(e.setSelection(new M(t, n)));
|
|
1715
1714
|
}
|
|
1716
1715
|
}
|
|
1717
1716
|
return e;
|
|
1718
1717
|
}
|
|
1719
|
-
var
|
|
1720
|
-
|
|
1718
|
+
var X = k("GoToPrevTableCell", () => () => _e(-1));
|
|
1719
|
+
z(X, {
|
|
1721
1720
|
displayName: "Command<goToPrevTableCellCommand>",
|
|
1722
1721
|
group: "Table"
|
|
1723
1722
|
});
|
|
1724
|
-
var
|
|
1725
|
-
|
|
1723
|
+
var Z = k("GoToNextTableCell", () => () => _e(1));
|
|
1724
|
+
z(Z, {
|
|
1726
1725
|
displayName: "Command<goToNextTableCellCommand>",
|
|
1727
1726
|
group: "Table"
|
|
1728
1727
|
});
|
|
1729
|
-
var
|
|
1730
|
-
if (!
|
|
1731
|
-
let { $head: r } = t.selection, i =
|
|
1728
|
+
var Q = k("ExitTable", (e) => () => (t, n) => {
|
|
1729
|
+
if (!Ce(t)) return !1;
|
|
1730
|
+
let { $head: r } = t.selection, i = o(r, G.type(e));
|
|
1732
1731
|
if (!i) return !1;
|
|
1733
|
-
let { to:
|
|
1734
|
-
return s.setSelection(
|
|
1732
|
+
let { to: a } = i, s = t.tr.replaceWith(a, a, fe.type(e).createAndFill());
|
|
1733
|
+
return s.setSelection(ie.near(s.doc.resolve(a), 1)).scrollIntoView(), n?.(s), !0;
|
|
1735
1734
|
});
|
|
1736
|
-
|
|
1735
|
+
z(Q, {
|
|
1737
1736
|
displayName: "Command<breakTableCommand>",
|
|
1738
1737
|
group: "Table"
|
|
1739
1738
|
});
|
|
1740
|
-
var
|
|
1741
|
-
let { selection:
|
|
1742
|
-
return
|
|
1739
|
+
var Zn = k("InsertTable", (e) => ({ row: t, col: n } = {}) => (r, i) => {
|
|
1740
|
+
let { selection: a, tr: o } = r, { from: s } = a, c = Hn(e, t, n), l = o.replaceSelectionWith(c), u = ie.findFrom(l.doc.resolve(s), 1, !0);
|
|
1741
|
+
return u && l.setSelection(u), i?.(l), !0;
|
|
1743
1742
|
});
|
|
1744
|
-
|
|
1743
|
+
z(Zn, {
|
|
1745
1744
|
displayName: "Command<insertTableCommand>",
|
|
1746
1745
|
group: "Table"
|
|
1747
1746
|
});
|
|
1748
|
-
var
|
|
1747
|
+
var Qn = k("MoveRow", () => ({ from: e, to: t, pos: n } = {}) => ye({
|
|
1749
1748
|
from: e ?? 0,
|
|
1750
1749
|
to: t ?? 0,
|
|
1751
1750
|
pos: n
|
|
1752
1751
|
}));
|
|
1753
|
-
|
|
1752
|
+
z(Qn, {
|
|
1754
1753
|
displayName: "Command<moveRowCommand>",
|
|
1755
1754
|
group: "Table"
|
|
1756
1755
|
});
|
|
1757
|
-
var
|
|
1756
|
+
var $n = k("MoveCol", () => ({ from: e, to: t, pos: n } = {}) => Se({
|
|
1758
1757
|
from: e ?? 0,
|
|
1759
1758
|
to: t ?? 0,
|
|
1760
1759
|
pos: n
|
|
1761
1760
|
}));
|
|
1762
|
-
|
|
1761
|
+
z($n, {
|
|
1763
1762
|
displayName: "Command<moveColCommand>",
|
|
1764
1763
|
group: "Table"
|
|
1765
1764
|
});
|
|
1766
|
-
var
|
|
1765
|
+
var er = k("SelectRow", () => (e = { index: 0 }) => (t, n) => {
|
|
1767
1766
|
let { tr: r } = t;
|
|
1768
|
-
return !!n?.(
|
|
1767
|
+
return !!n?.(Kn(e.index, e.pos)(r));
|
|
1769
1768
|
});
|
|
1770
|
-
|
|
1769
|
+
z(er, {
|
|
1771
1770
|
displayName: "Command<selectRowCommand>",
|
|
1772
1771
|
group: "Table"
|
|
1773
1772
|
});
|
|
1774
|
-
var
|
|
1773
|
+
var tr = k("SelectCol", () => (e = { index: 0 }) => (t, n) => {
|
|
1775
1774
|
let { tr: r } = t;
|
|
1776
|
-
return !!n?.(
|
|
1775
|
+
return !!n?.(qn(e.index, e.pos)(r));
|
|
1777
1776
|
});
|
|
1778
|
-
|
|
1777
|
+
z(tr, {
|
|
1779
1778
|
displayName: "Command<selectColCommand>",
|
|
1780
1779
|
group: "Table"
|
|
1781
1780
|
});
|
|
1782
|
-
var
|
|
1781
|
+
var nr = k("SelectTable", () => () => (e, t) => {
|
|
1783
1782
|
let { tr: n } = e;
|
|
1784
|
-
return !!t?.(
|
|
1783
|
+
return !!t?.(Xn(n));
|
|
1785
1784
|
});
|
|
1786
|
-
|
|
1785
|
+
z(nr, {
|
|
1787
1786
|
displayName: "Command<selectTableCommand>",
|
|
1788
1787
|
group: "Table"
|
|
1789
1788
|
});
|
|
1790
|
-
var
|
|
1789
|
+
var rr = k("DeleteSelectedCells", () => () => (e, t) => {
|
|
1791
1790
|
let { selection: n } = e;
|
|
1792
|
-
if (!(n instanceof
|
|
1791
|
+
if (!(n instanceof M)) return !1;
|
|
1793
1792
|
let r = n.isRowSelection(), i = n.isColSelection();
|
|
1794
|
-
return r && i ?
|
|
1793
|
+
return r && i ? Ee(e, t) : i ? he(e, t) : xe(e, t);
|
|
1795
1794
|
});
|
|
1796
|
-
|
|
1795
|
+
z(rr, {
|
|
1797
1796
|
displayName: "Command<deleteSelectedCellsCommand>",
|
|
1798
1797
|
group: "Table"
|
|
1799
1798
|
});
|
|
1800
|
-
var
|
|
1801
|
-
|
|
1799
|
+
var ir = k("AddColBefore", () => () => be);
|
|
1800
|
+
z(ir, {
|
|
1802
1801
|
displayName: "Command<addColBeforeCommand>",
|
|
1803
1802
|
group: "Table"
|
|
1804
1803
|
});
|
|
1805
|
-
var
|
|
1806
|
-
|
|
1804
|
+
var ar = k("AddColAfter", () => () => we);
|
|
1805
|
+
z(ar, {
|
|
1807
1806
|
displayName: "Command<addColAfterCommand>",
|
|
1808
1807
|
group: "Table"
|
|
1809
1808
|
});
|
|
1810
|
-
var
|
|
1811
|
-
if (!
|
|
1809
|
+
var or = k("AddRowBefore", (e) => () => (t, n) => {
|
|
1810
|
+
if (!Ce(t)) return !1;
|
|
1812
1811
|
if (n) {
|
|
1813
|
-
let r =
|
|
1814
|
-
n(
|
|
1812
|
+
let r = ve(t);
|
|
1813
|
+
n(Jn(e, t.tr, r, r.top));
|
|
1815
1814
|
}
|
|
1816
1815
|
return !0;
|
|
1817
1816
|
});
|
|
1818
|
-
|
|
1817
|
+
z(or, {
|
|
1819
1818
|
displayName: "Command<addRowBeforeCommand>",
|
|
1820
1819
|
group: "Table"
|
|
1821
1820
|
});
|
|
1822
|
-
var
|
|
1823
|
-
if (!
|
|
1821
|
+
var sr = k("AddRowAfter", (e) => () => (t, n) => {
|
|
1822
|
+
if (!Ce(t)) return !1;
|
|
1824
1823
|
if (n) {
|
|
1825
|
-
let r =
|
|
1826
|
-
n(
|
|
1824
|
+
let r = ve(t);
|
|
1825
|
+
n(Jn(e, t.tr, r, r.bottom));
|
|
1827
1826
|
}
|
|
1828
1827
|
return !0;
|
|
1829
1828
|
});
|
|
1830
|
-
|
|
1829
|
+
z(sr, {
|
|
1831
1830
|
displayName: "Command<addRowAfterCommand>",
|
|
1832
1831
|
group: "Table"
|
|
1833
1832
|
});
|
|
1834
|
-
var
|
|
1835
|
-
|
|
1833
|
+
var cr = k("SetAlign", () => (e = "left") => me("alignment", e));
|
|
1834
|
+
z(cr, {
|
|
1836
1835
|
displayName: "Command<setAlignCommand>",
|
|
1837
1836
|
group: "Table"
|
|
1838
1837
|
});
|
|
1839
|
-
var
|
|
1840
|
-
let
|
|
1841
|
-
if (!
|
|
1842
|
-
let
|
|
1843
|
-
return
|
|
1838
|
+
var lr = de((e) => new s(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/, (t, n, r, i) => {
|
|
1839
|
+
let a = t.doc.resolve(r);
|
|
1840
|
+
if (!a.node(-1).canReplaceWith(a.index(-1), a.indexAfter(-1), G.type(e))) return null;
|
|
1841
|
+
let o = Hn(e, Math.max(Number(n.groups?.row ?? 0), 2), Number(n.groups?.col)), s = t.tr.replaceRangeWith(r, i, o);
|
|
1842
|
+
return s.setSelection(ne.create(s.doc, r + 3)).scrollIntoView();
|
|
1844
1843
|
}));
|
|
1845
|
-
|
|
1844
|
+
z(lr, {
|
|
1846
1845
|
displayName: "InputRule<insertTableInputRule>",
|
|
1847
1846
|
group: "Table"
|
|
1848
1847
|
});
|
|
1849
|
-
var
|
|
1850
|
-
if (
|
|
1851
|
-
function
|
|
1852
|
-
let
|
|
1853
|
-
if (
|
|
1854
|
-
let
|
|
1855
|
-
if (!(
|
|
1856
|
-
if (
|
|
1857
|
-
let
|
|
1858
|
-
for (let
|
|
1859
|
-
let
|
|
1860
|
-
|
|
1848
|
+
var ur = le((e) => ({ run: (t, n, r) => {
|
|
1849
|
+
if (r) return t;
|
|
1850
|
+
function i(t) {
|
|
1851
|
+
let n = t.childCount, r = t.lastChild?.childCount ?? 0;
|
|
1852
|
+
if (n === 0 || r === 0) return fe.type(e).create();
|
|
1853
|
+
let i = t.firstChild;
|
|
1854
|
+
if (!(r > 0 && i && i.childCount === 0)) return t;
|
|
1855
|
+
if (n >= 3) {
|
|
1856
|
+
let r = t.child(1), a = [];
|
|
1857
|
+
for (let t = 0; t < r.childCount; t++) {
|
|
1858
|
+
let n = r.child(t);
|
|
1859
|
+
a.push(Y.type(e).create(n.attrs, n.content, n.marks));
|
|
1861
1860
|
}
|
|
1862
|
-
let
|
|
1863
|
-
for (let e = 2; e <
|
|
1864
|
-
return
|
|
1861
|
+
let o = i.type.create(i.attrs, a), s = [];
|
|
1862
|
+
for (let e = 2; e < n; e++) s.push(t.child(e));
|
|
1863
|
+
return t.type.create(t.attrs, [o, ...s]);
|
|
1865
1864
|
}
|
|
1866
|
-
let
|
|
1867
|
-
return
|
|
1865
|
+
let a = Array(r).fill(0).map(() => Y.type(e).createAndFill()), o = new T(D.from(a), 0, 0), s = i.replace(0, 0, o);
|
|
1866
|
+
return t.replace(0, i.nodeSize, new T(D.from(s), 0, 0));
|
|
1868
1867
|
}
|
|
1869
|
-
function
|
|
1870
|
-
let
|
|
1871
|
-
function
|
|
1868
|
+
function a(t) {
|
|
1869
|
+
let n = q.type(e), r = [], a = [], o = !1;
|
|
1870
|
+
function s() {
|
|
1872
1871
|
if (a.length === 0) return;
|
|
1873
|
-
let
|
|
1874
|
-
|
|
1872
|
+
let t = K.type(e).createAndFill(), n = G.type(e).create(null, [t, ...a]);
|
|
1873
|
+
r.push(i(n)), a = [];
|
|
1875
1874
|
}
|
|
1876
|
-
return
|
|
1877
|
-
e.type ===
|
|
1878
|
-
}),
|
|
1879
|
-
}
|
|
1880
|
-
function
|
|
1881
|
-
let
|
|
1882
|
-
return
|
|
1883
|
-
if (
|
|
1884
|
-
let
|
|
1885
|
-
|
|
1886
|
-
} else if (
|
|
1887
|
-
let
|
|
1888
|
-
|
|
1889
|
-
} else
|
|
1890
|
-
}),
|
|
1891
|
-
}
|
|
1892
|
-
function
|
|
1893
|
-
let
|
|
1894
|
-
|
|
1895
|
-
for (let
|
|
1896
|
-
let
|
|
1897
|
-
|
|
1875
|
+
return t.forEach((e) => {
|
|
1876
|
+
e.type === n ? (o = !0, a.push(e)) : (s(), r.push(e));
|
|
1877
|
+
}), s(), o ? D.from(r) : t;
|
|
1878
|
+
}
|
|
1879
|
+
function o(t) {
|
|
1880
|
+
let n = a(t), r = n !== t, s = [];
|
|
1881
|
+
return n.forEach((t) => {
|
|
1882
|
+
if (t.type === G.type(e)) {
|
|
1883
|
+
let e = i(t);
|
|
1884
|
+
e !== t && (r = !0), s.push(e);
|
|
1885
|
+
} else if (t.childCount > 0) {
|
|
1886
|
+
let e = o(t.content);
|
|
1887
|
+
e === t.content ? s.push(t) : (r = !0, s.push(t.copy(e)));
|
|
1888
|
+
} else s.push(t);
|
|
1889
|
+
}), r ? D.from(s) : t;
|
|
1890
|
+
}
|
|
1891
|
+
function s(t) {
|
|
1892
|
+
let n = [], r = [];
|
|
1893
|
+
t.forEach((e) => r.push(e));
|
|
1894
|
+
for (let t = 0; t < r.length; t++) {
|
|
1895
|
+
let i = r[t], a = r[t + 1];
|
|
1896
|
+
i.type === fe.type(e) && i.content.size === 0 && a && a.type === G.type(e) || n.push(i);
|
|
1898
1897
|
}
|
|
1899
|
-
return
|
|
1898
|
+
return n.length < r.length ? D.from(n) : t;
|
|
1900
1899
|
}
|
|
1901
|
-
let
|
|
1902
|
-
return
|
|
1900
|
+
let c = o(t.content);
|
|
1901
|
+
return c = s(c), new T(D.from(c), t.openStart, t.openEnd);
|
|
1903
1902
|
} }));
|
|
1904
|
-
|
|
1903
|
+
z(ur, {
|
|
1905
1904
|
displayName: "PasteRule<table>",
|
|
1906
1905
|
group: "Table"
|
|
1907
1906
|
});
|
|
1908
|
-
var
|
|
1907
|
+
var $ = ue("tableKeymap", {
|
|
1909
1908
|
NextCell: {
|
|
1910
1909
|
priority: 100,
|
|
1911
1910
|
shortcuts: ["Mod-]", "Tab"],
|
|
1912
1911
|
command: (e) => {
|
|
1913
|
-
let t = e.get(
|
|
1914
|
-
return () => t.call(
|
|
1912
|
+
let t = e.get(b);
|
|
1913
|
+
return () => t.call(Z.key);
|
|
1915
1914
|
}
|
|
1916
1915
|
},
|
|
1917
1916
|
PrevCell: {
|
|
1918
1917
|
shortcuts: ["Mod-[", "Shift-Tab"],
|
|
1919
1918
|
command: (e) => {
|
|
1920
|
-
let t = e.get(
|
|
1921
|
-
return () => t.call(
|
|
1919
|
+
let t = e.get(b);
|
|
1920
|
+
return () => t.call(X.key);
|
|
1922
1921
|
}
|
|
1923
1922
|
},
|
|
1924
1923
|
ExitTable: {
|
|
1925
1924
|
shortcuts: ["Mod-Enter", "Enter"],
|
|
1926
1925
|
command: (e) => {
|
|
1927
|
-
let t = e.get(
|
|
1928
|
-
return () => t.call(
|
|
1926
|
+
let t = e.get(b);
|
|
1927
|
+
return () => t.call(Q.key);
|
|
1929
1928
|
}
|
|
1930
1929
|
}
|
|
1931
1930
|
});
|
|
1932
|
-
|
|
1931
|
+
z($.ctx, {
|
|
1933
1932
|
displayName: "KeymapCtx<table>",
|
|
1934
1933
|
group: "Table"
|
|
1935
|
-
}),
|
|
1934
|
+
}), z($.shortcuts, {
|
|
1936
1935
|
displayName: "Keymap<table>",
|
|
1937
1936
|
group: "Table"
|
|
1938
1937
|
});
|
|
1939
|
-
var
|
|
1938
|
+
var dr = "footnote_definition", fr = "footnoteDefinition", pr = O("footnote_definition", () => ({
|
|
1940
1939
|
group: "block",
|
|
1941
1940
|
content: "block+",
|
|
1942
1941
|
defining: !0,
|
|
@@ -1945,9 +1944,9 @@ var fr = "footnote_definition", pr = "footnoteDefinition", $ = D("footnote_defin
|
|
|
1945
1944
|
validate: "string"
|
|
1946
1945
|
} },
|
|
1947
1946
|
parseDOM: [{
|
|
1948
|
-
tag: `dl[data-type="${
|
|
1947
|
+
tag: `dl[data-type="${dr}"]`,
|
|
1949
1948
|
getAttrs: (e) => {
|
|
1950
|
-
if (!(e instanceof HTMLElement)) throw
|
|
1949
|
+
if (!(e instanceof HTMLElement)) throw w(e);
|
|
1951
1950
|
return { label: e.dataset.label };
|
|
1952
1951
|
},
|
|
1953
1952
|
contentElement: "dd"
|
|
@@ -1958,36 +1957,36 @@ var fr = "footnote_definition", pr = "footnoteDefinition", $ = D("footnote_defin
|
|
|
1958
1957
|
"dl",
|
|
1959
1958
|
{
|
|
1960
1959
|
"data-label": t,
|
|
1961
|
-
"data-type":
|
|
1960
|
+
"data-type": dr
|
|
1962
1961
|
},
|
|
1963
1962
|
["dt", t],
|
|
1964
1963
|
["dd", 0]
|
|
1965
1964
|
];
|
|
1966
1965
|
},
|
|
1967
1966
|
parseMarkdown: {
|
|
1968
|
-
match: ({ type: e }) => e ===
|
|
1967
|
+
match: ({ type: e }) => e === fr,
|
|
1969
1968
|
runner: (e, t, n) => {
|
|
1970
1969
|
e.openNode(n, { label: t.label }).next(t.children).closeNode();
|
|
1971
1970
|
}
|
|
1972
1971
|
},
|
|
1973
1972
|
toMarkdown: {
|
|
1974
|
-
match: (e) => e.type.name ===
|
|
1973
|
+
match: (e) => e.type.name === dr,
|
|
1975
1974
|
runner: (e, t) => {
|
|
1976
|
-
e.openNode(
|
|
1975
|
+
e.openNode(fr, void 0, {
|
|
1977
1976
|
label: t.attrs.label,
|
|
1978
1977
|
identifier: t.attrs.label
|
|
1979
1978
|
}).next(t.content).closeNode();
|
|
1980
1979
|
}
|
|
1981
1980
|
}
|
|
1982
1981
|
}));
|
|
1983
|
-
|
|
1982
|
+
z(pr.ctx, {
|
|
1984
1983
|
displayName: "NodeSchemaCtx<footnodeDef>",
|
|
1985
1984
|
group: "footnote"
|
|
1986
|
-
}),
|
|
1985
|
+
}), z(pr.node, {
|
|
1987
1986
|
displayName: "NodeSchema<footnodeDef>",
|
|
1988
1987
|
group: "footnote"
|
|
1989
1988
|
});
|
|
1990
|
-
var mr = "footnote_reference", hr =
|
|
1989
|
+
var mr = "footnote_reference", hr = O("footnote_reference", () => ({
|
|
1991
1990
|
group: "inline",
|
|
1992
1991
|
inline: !0,
|
|
1993
1992
|
atom: !0,
|
|
@@ -1998,7 +1997,7 @@ var mr = "footnote_reference", hr = D("footnote_reference", () => ({
|
|
|
1998
1997
|
parseDOM: [{
|
|
1999
1998
|
tag: `sup[data-type="${mr}"]`,
|
|
2000
1999
|
getAttrs: (e) => {
|
|
2001
|
-
if (!(e instanceof HTMLElement)) throw
|
|
2000
|
+
if (!(e instanceof HTMLElement)) throw w(e);
|
|
2002
2001
|
return { label: e.dataset.label };
|
|
2003
2002
|
}
|
|
2004
2003
|
}],
|
|
@@ -2029,14 +2028,14 @@ var mr = "footnote_reference", hr = D("footnote_reference", () => ({
|
|
|
2029
2028
|
}
|
|
2030
2029
|
}
|
|
2031
2030
|
}));
|
|
2032
|
-
|
|
2031
|
+
z(hr.ctx, {
|
|
2033
2032
|
displayName: "NodeSchemaCtx<footnodeRef>",
|
|
2034
2033
|
group: "footnote"
|
|
2035
|
-
}),
|
|
2034
|
+
}), z(hr.node, {
|
|
2036
2035
|
displayName: "NodeSchema<footnodeRef>",
|
|
2037
2036
|
group: "footnote"
|
|
2038
2037
|
});
|
|
2039
|
-
var gr =
|
|
2038
|
+
var gr = pe.extendSchema((e) => (t) => {
|
|
2040
2039
|
let n = e(t);
|
|
2041
2040
|
return {
|
|
2042
2041
|
...n,
|
|
@@ -2050,7 +2049,7 @@ var gr = me.extendSchema((e) => (t) => {
|
|
|
2050
2049
|
parseDOM: [{
|
|
2051
2050
|
tag: "li[data-item-type=\"task\"]",
|
|
2052
2051
|
getAttrs: (e) => {
|
|
2053
|
-
if (!(e instanceof HTMLElement)) throw
|
|
2052
|
+
if (!(e instanceof HTMLElement)) throw w(e);
|
|
2054
2053
|
return {
|
|
2055
2054
|
label: e.dataset.label,
|
|
2056
2055
|
listType: e.dataset.listType,
|
|
@@ -2104,14 +2103,14 @@ var gr = me.extendSchema((e) => (t) => {
|
|
|
2104
2103
|
}
|
|
2105
2104
|
};
|
|
2106
2105
|
});
|
|
2107
|
-
|
|
2106
|
+
z(gr.node, {
|
|
2108
2107
|
displayName: "NodeSchema<taskListItem>",
|
|
2109
2108
|
group: "ListItem"
|
|
2110
|
-
}),
|
|
2109
|
+
}), z(gr.ctx, {
|
|
2111
2110
|
displayName: "NodeSchemaCtx<taskListItem>",
|
|
2112
2111
|
group: "ListItem"
|
|
2113
2112
|
});
|
|
2114
|
-
var _r =
|
|
2113
|
+
var _r = de(() => new s(/^\[(?<checked>\s|x)\]\s$/, (e, t, n, r) => {
|
|
2115
2114
|
let i = e.doc.resolve(n), a = 0, o = i.node(a);
|
|
2116
2115
|
for (; o && o.type.name !== "list_item";) a--, o = i.node(a);
|
|
2117
2116
|
if (!o || o.attrs.checked != null) return null;
|
|
@@ -2121,41 +2120,41 @@ var _r = fe(() => new T(/^\[(?<checked>\s|x)\]\s$/, (e, t, n, r) => {
|
|
|
2121
2120
|
checked: s
|
|
2122
2121
|
}), l;
|
|
2123
2122
|
}));
|
|
2124
|
-
|
|
2123
|
+
z(_r, {
|
|
2125
2124
|
displayName: "InputRule<wrapInTaskListInputRule>",
|
|
2126
2125
|
group: "ListItem"
|
|
2127
2126
|
});
|
|
2128
|
-
var vr = [
|
|
2129
|
-
|
|
2127
|
+
var vr = [U, $].flat(), yr = [lr, _r], br = [Vn], xr = [ur], Sr = A(() => ze);
|
|
2128
|
+
z(Sr, {
|
|
2130
2129
|
displayName: "Prose<autoInsertSpanPlugin>",
|
|
2131
2130
|
group: "Prose"
|
|
2132
2131
|
});
|
|
2133
|
-
var Cr =
|
|
2134
|
-
|
|
2132
|
+
var Cr = A(() => Te({}));
|
|
2133
|
+
z(Cr, {
|
|
2135
2134
|
displayName: "Prose<columnResizingPlugin>",
|
|
2136
2135
|
group: "Prose"
|
|
2137
2136
|
});
|
|
2138
|
-
var wr =
|
|
2139
|
-
|
|
2137
|
+
var wr = A(() => De({ allowTableNodeSelection: !0 }));
|
|
2138
|
+
z(wr, {
|
|
2140
2139
|
displayName: "Prose<tableEditingPlugin>",
|
|
2141
2140
|
group: "Prose"
|
|
2142
2141
|
});
|
|
2143
|
-
var Tr =
|
|
2144
|
-
|
|
2142
|
+
var Tr = se("remarkGFM", () => Bn);
|
|
2143
|
+
z(Tr.plugin, {
|
|
2145
2144
|
displayName: "Remark<remarkGFMPlugin>",
|
|
2146
2145
|
group: "Remark"
|
|
2147
|
-
}),
|
|
2146
|
+
}), z(Tr.options, {
|
|
2148
2147
|
displayName: "RemarkConfig<remarkGFMPlugin>",
|
|
2149
2148
|
group: "Remark"
|
|
2150
2149
|
});
|
|
2151
|
-
var Er = new
|
|
2150
|
+
var Er = new E("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");
|
|
2152
2151
|
function Dr(e, t) {
|
|
2153
2152
|
let n = 0;
|
|
2154
2153
|
return t.forEach((t, r, i) => {
|
|
2155
2154
|
t === e && (n = i);
|
|
2156
2155
|
}), n;
|
|
2157
2156
|
}
|
|
2158
|
-
var Or =
|
|
2157
|
+
var Or = A(() => new re({
|
|
2159
2158
|
key: Er,
|
|
2160
2159
|
appendTransaction: (e, t, n) => {
|
|
2161
2160
|
let r;
|
|
@@ -2173,7 +2172,7 @@ var Or = k(() => new r({
|
|
|
2173
2172
|
}), r;
|
|
2174
2173
|
}
|
|
2175
2174
|
}));
|
|
2176
|
-
|
|
2175
|
+
z(Or, {
|
|
2177
2176
|
displayName: "Prose<keepTableAlignPlugin>",
|
|
2178
2177
|
group: "Prose"
|
|
2179
2178
|
});
|
|
@@ -2184,32 +2183,32 @@ var kr = [
|
|
|
2184
2183
|
wr
|
|
2185
2184
|
].flat(), Ar = [
|
|
2186
2185
|
gr,
|
|
2187
|
-
W,
|
|
2188
2186
|
G,
|
|
2189
2187
|
K,
|
|
2190
|
-
J,
|
|
2191
2188
|
q,
|
|
2192
|
-
|
|
2189
|
+
Y,
|
|
2190
|
+
J,
|
|
2191
|
+
pr,
|
|
2193
2192
|
hr,
|
|
2194
|
-
|
|
2195
|
-
|
|
2193
|
+
B,
|
|
2194
|
+
V
|
|
2196
2195
|
].flat(), jr = [
|
|
2197
|
-
X,
|
|
2198
|
-
Y,
|
|
2199
2196
|
Z,
|
|
2197
|
+
X,
|
|
2198
|
+
Q,
|
|
2199
|
+
Zn,
|
|
2200
2200
|
Qn,
|
|
2201
2201
|
$n,
|
|
2202
2202
|
er,
|
|
2203
2203
|
tr,
|
|
2204
2204
|
nr,
|
|
2205
2205
|
rr,
|
|
2206
|
-
|
|
2206
|
+
or,
|
|
2207
2207
|
sr,
|
|
2208
|
-
|
|
2208
|
+
ir,
|
|
2209
2209
|
ar,
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
V
|
|
2210
|
+
cr,
|
|
2211
|
+
H
|
|
2213
2212
|
], Mr = [
|
|
2214
2213
|
Ar,
|
|
2215
2214
|
yr,
|
|
@@ -2220,4 +2219,4 @@ var kr = [
|
|
|
2220
2219
|
kr
|
|
2221
2220
|
].flat();
|
|
2222
2221
|
//#endregion
|
|
2223
|
-
export {
|
|
2222
|
+
export { ar as addColAfterCommand, ir as addColBeforeCommand, sr as addRowAfterCommand, or as addRowBeforeCommand, Jn as addRowWithAlignment, Sr as autoInsertSpanPlugin, Cr as columnResizingPlugin, jr as commands, Hn as createTable, rr as deleteSelectedCellsCommand, Q as exitTable, gr as extendListItemSchemaForTask, pr as footnoteDefinitionSchema, hr as footnoteReferenceSchema, Yn as getAllCellsInTable, Un as getCellsInCol, Wn as getCellsInRow, Mr as gfm, Z as goToNextTableCellCommand, X as goToPrevTableCellCommand, yr as inputRules, Zn as insertTableCommand, lr as insertTableInputRule, Or as keepTableAlignPlugin, vr as keymap, br as markInputRules, $n as moveColCommand, Qn as moveRowCommand, xr as pasteRules, kr as plugins, Tr as remarkGFMPlugin, Ar as schema, qn as selectCol, tr as selectColCommand, Gn as selectLine, Kn as selectRow, er as selectRowCommand, Xn as selectTable, nr as selectTableCommand, cr as setAlignCommand, B as strikethroughAttr, Vn as strikethroughInputRule, U as strikethroughKeymap, V as strikethroughSchema, J as tableCellSchema, wr as tableEditingPlugin, K as tableHeaderRowSchema, Y as tableHeaderSchema, $ as tableKeymap, ur as tablePasteRule, q as tableRowSchema, G as tableSchema, H as toggleStrikethroughCommand, _r as wrapInTaskListInputRule };
|