markdown-flow-ui 0.3.0-dev.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_virtual/index.es10.js +2 -2
- package/dist/_virtual/index.es3.js +4 -5
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +5 -4
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es6.js +3 -5
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +5 -3
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js +125 -124
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/node_modules/unified/lib/index.cjs +1 -1
- package/dist/node_modules/unified/lib/index.es.js +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __exports as
|
|
1
|
+
import { __exports as bn } from "../../../_virtual/interaction-syntax.es.js";
|
|
2
2
|
import { __require as Ft } from "./variable-name.es.js";
|
|
3
3
|
var tt;
|
|
4
4
|
function Ut() {
|
|
5
|
-
return tt ?
|
|
5
|
+
return tt ? bn : (tt = 1, (function(A) {
|
|
6
6
|
Object.defineProperty(A, "__esModule", { value: !0 }), A.TOKENIZED_TREE = A.OPAQUE_PARAGRAPH = A.VARIABLE_NODE = A.INTERACTION_NODE = void 0, A.interactionSyntax = Mn, A.interactionFromMarkdown = Hn, A.registerInteractionSyntax = Ot;
|
|
7
|
-
const
|
|
7
|
+
const Nn = Ft();
|
|
8
8
|
A.INTERACTION_NODE = "flowInteraction", A.VARIABLE_NODE = "flowVariableMarker", A.OPAQUE_PARAGRAPH = "flowOpaqueParagraph";
|
|
9
9
|
const Y = "flowOpaqueHeading";
|
|
10
10
|
A.TOKENIZED_TREE = "flowInteractionTokenized";
|
|
11
|
-
const
|
|
11
|
+
const vn = 63, U = 91, W = 93, rt = 40, sn = 60, Ln = 92, B = 96, on = 35, M = 36, et = 33, it = 32, ut = 6, H = 123, j = 125, yn = /* @__PURE__ */ new Set([124, 47, 46, 93]), J = "flowInteraction", Q = "flowVariableMarker", v = "flowInteractionMarker", x = "flowInteractionData", q = "lineEnding", at = 65533, lt = -3, fn = -2, cn = -1, pn = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), $ = [], st = new Uint32Array();
|
|
12
12
|
function hn(t, r) {
|
|
13
13
|
let i = zn.get(t);
|
|
14
14
|
i === void 0 && (i = $[$.length - 1] ?? st, zn.set(t, i));
|
|
@@ -59,40 +59,40 @@ function Ut() {
|
|
|
59
59
|
const a = () => Dn(this, t.exit(J));
|
|
60
60
|
return l;
|
|
61
61
|
function l(e) {
|
|
62
|
-
return t.enter(J), t.enter(
|
|
62
|
+
return t.enter(J), t.enter(v), t.consume(e), u;
|
|
63
63
|
}
|
|
64
64
|
function u(e) {
|
|
65
|
-
return e !== U ? i(e) : (t.consume(e), t.exit(
|
|
65
|
+
return e !== U ? i(e) : (t.consume(e), t.exit(v), f);
|
|
66
66
|
}
|
|
67
67
|
function f(e) {
|
|
68
|
-
return e === null ? i(e) : e === W ? P(e) : T(e) ? k(e) : (t.enter(
|
|
68
|
+
return e === null ? i(e) : e === W ? P(e) : T(e) ? k(e) : (t.enter(x), b(e));
|
|
69
69
|
}
|
|
70
70
|
function O(e) {
|
|
71
|
-
return e !== H ?
|
|
71
|
+
return e !== H ? b(e) : (t.consume(e), _);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return e === null ? (t.exit(
|
|
73
|
+
function _(e) {
|
|
74
|
+
return e === null ? (t.exit(x), a(), r(e)) : T(e) ? (t.exit(x), L(e)) : (t.consume(e), e === j ? s : _);
|
|
75
75
|
}
|
|
76
76
|
function s(e) {
|
|
77
|
-
return e !== j ?
|
|
77
|
+
return e !== j ? _(e) : (t.consume(e), b);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function L(e) {
|
|
80
80
|
return t.enter(q), t.consume(e), t.exit(q), d;
|
|
81
81
|
}
|
|
82
82
|
function d(e) {
|
|
83
|
-
return e === null ? (a(), r(e)) : T(e) ?
|
|
83
|
+
return e === null ? (a(), r(e)) : T(e) ? L(e) : (t.enter(x), _(e));
|
|
84
84
|
}
|
|
85
85
|
function k(e) {
|
|
86
86
|
return t.enter(q), t.consume(e), t.exit(q), f;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return e === null ? i(e) : e === W ? (t.exit(
|
|
88
|
+
function b(e) {
|
|
89
|
+
return e === null ? i(e) : e === W ? (t.exit(x), P(e)) : T(e) ? (t.exit(x), k(e)) : (t.consume(e), e === H ? O : e === Ln ? nn : b);
|
|
90
90
|
}
|
|
91
91
|
function nn(e) {
|
|
92
|
-
return e !== null && yn.has(e) ? (t.consume(e),
|
|
92
|
+
return e !== null && yn.has(e) ? (t.consume(e), b) : b(e);
|
|
93
93
|
}
|
|
94
94
|
function P(e) {
|
|
95
|
-
return t.enter(
|
|
95
|
+
return t.enter(v), t.consume(e), t.exit(v), F;
|
|
96
96
|
}
|
|
97
97
|
function F(e) {
|
|
98
98
|
return e === rt ? i(e) : (a(), r(e));
|
|
@@ -108,20 +108,20 @@ function Ut() {
|
|
|
108
108
|
return s !== H ? i(s) : (t.consume(s), f);
|
|
109
109
|
}
|
|
110
110
|
function f(s) {
|
|
111
|
-
return s === null ? (a(), r(s)) : T(s) ? (t.enter(q), t.consume(s), t.exit(q), f) : (t.enter(
|
|
111
|
+
return s === null ? (a(), r(s)) : T(s) ? (t.enter(q), t.consume(s), t.exit(q), f) : (t.enter(x), O(s));
|
|
112
112
|
}
|
|
113
113
|
function O(s) {
|
|
114
|
-
return s === null || T(s) ? (t.exit(
|
|
114
|
+
return s === null || T(s) ? (t.exit(x), f(s)) : (t.consume(s), s === j ? _ : O);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return s !== j ? O(s) : (t.consume(s), t.exit(
|
|
116
|
+
function _(s) {
|
|
117
|
+
return s !== j ? O(s) : (t.consume(s), t.exit(x), a(), r);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function ht(t, r, i) {
|
|
121
121
|
const a = mn(this, t, r, i, !1), l = this.parser.constructs.contentInitial?.[U]?.find((u) => u.name === "definition");
|
|
122
122
|
return !l || this.interrupt ? a : (u) => u === U ? t.check({
|
|
123
123
|
partial: !0,
|
|
124
|
-
tokenize(f, O,
|
|
124
|
+
tokenize(f, O, _) {
|
|
125
125
|
const s = Object.create(this, {
|
|
126
126
|
parser: {
|
|
127
127
|
value: Object.create(this.parser, {
|
|
@@ -129,7 +129,7 @@ function Ut() {
|
|
|
129
129
|
})
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
return l.tokenize.call(s, f, O,
|
|
132
|
+
return l.tokenize.call(s, f, O, _);
|
|
133
133
|
}
|
|
134
134
|
}, i, a)(u) : a(u);
|
|
135
135
|
}
|
|
@@ -137,7 +137,7 @@ function Ut() {
|
|
|
137
137
|
return mn(this, t, r, i, !0);
|
|
138
138
|
}
|
|
139
139
|
function mn(t, r, i, a, l, u = !1) {
|
|
140
|
-
let f = !1, O = !1,
|
|
140
|
+
let f = !1, O = !1, _ = !1, s = !1, L = !1, d = 0, k = 0, b = 0, nn = 0, P = !1, F = 0, e = 0, En = !1, G = null, gn = null;
|
|
141
141
|
const On = [], tn = /* @__PURE__ */ new Set(), rn = /* @__PURE__ */ new Set();
|
|
142
142
|
let X, Gn;
|
|
143
143
|
const kn = l ? Y : "content", An = t.parser.constructs.text[sn]?.find((n) => n.name === "htmlText"), Tn = t.parser.constructs.text[sn]?.find((n) => n.name === "autolink"), In = t.parser.constructs.text[M]?.find((n) => n.name === "mathText"), wn = t.parser.constructs.text[W]?.find((n) => n.name === "labelEnd");
|
|
@@ -149,179 +149,180 @@ function Ut() {
|
|
|
149
149
|
n,
|
|
150
150
|
p.map((o) => ({ ...o, partial: !0 }))
|
|
151
151
|
]));
|
|
152
|
-
return
|
|
153
|
-
function
|
|
154
|
-
return t.interrupt ? a(n) : (u || (t.currentConstruct = Un), Gn = r.enter(kn), l ? (r.enter(
|
|
152
|
+
return St;
|
|
153
|
+
function St(n) {
|
|
154
|
+
return t.interrupt ? a(n) : (u || (t.currentConstruct = Un), Gn = r.enter(kn), l ? (r.enter(v), Wn(n)) : (r.enter("paragraph"), Zn(n)));
|
|
155
155
|
}
|
|
156
156
|
function Wn(n) {
|
|
157
157
|
return n === on ? ++d > ut ? a(n) : (r.consume(n), Wn) : n !== null && !T(n) && !K(n) ? a(n) : (Gn.flowHeadingDepth = d, Qn(n));
|
|
158
158
|
}
|
|
159
159
|
function Qn(n) {
|
|
160
|
-
return K(n) ? (r.consume(n), Qn) : (r.exit(
|
|
160
|
+
return K(n) ? (r.consume(n), Qn) : (r.exit(v), Zn(n));
|
|
161
161
|
}
|
|
162
162
|
function Zn(n) {
|
|
163
163
|
return n === null || T(n) ? a(n) : (X = r.enter("chunkText", { contentType: "text" }), y(n));
|
|
164
164
|
}
|
|
165
165
|
function y(n) {
|
|
166
166
|
if (n === null || T(n))
|
|
167
|
-
return u ? !f || n === null ? a(n) : (r.exit("chunkText"),
|
|
167
|
+
return u ? !f || n === null ? a(n) : (r.exit("chunkText"), xn(), i(n)) : f && n !== null ? (_ = !0, O = !1, r.consume(n), r.exit("chunkText"), Yn) : n !== null && !l ? r.check(Vn, Mt, dn)(n) : dn(n);
|
|
168
168
|
if (!f) {
|
|
169
169
|
if (!s && n === B)
|
|
170
|
-
return hn(t.parser, t.now().offset) ? (gn = n,
|
|
170
|
+
return hn(t.parser, t.now().offset) ? (gn = n, Sn(n)) : (k = 0, b = 0, nn = t.now().offset, P = !1, r.check({ partial: !0, tokenize: xt }, N, yt)(n));
|
|
171
171
|
if (!s && n === sn && (Tn || An))
|
|
172
|
-
return k = 0, r.check({ partial: !0, tokenize: Ct },
|
|
172
|
+
return k = 0, r.check({ partial: !0, tokenize: Ct }, N, bt)(n);
|
|
173
173
|
if (!s && n === M && In)
|
|
174
|
-
return hn(t.parser, t.now().offset) ? (gn = n,
|
|
174
|
+
return hn(t.parser, t.now().offset) ? (gn = n, Sn(n)) : (k = 0, F = 0, e = t.now().offset, En = !1, r.check({ partial: !0, tokenize: Nt }, N, zt)(n));
|
|
175
175
|
if (n === W && On.length && wn && (D = On.pop(), D && tn.delete(D), !D?.inactive))
|
|
176
|
-
return k = 0, r.check({ partial: !0, tokenize:
|
|
176
|
+
return k = 0, r.check({ partial: !0, tokenize: vt }, Pt, _n)(n);
|
|
177
177
|
if (l && K(n))
|
|
178
|
-
return k = 0, r.check({ partial: !0, tokenize: Dt }, Bt,
|
|
179
|
-
if (n ===
|
|
180
|
-
return r.consume(n), O = !1,
|
|
178
|
+
return k = 0, r.check({ partial: !0, tokenize: Dt }, Bt, N)(n);
|
|
179
|
+
if (n === Ln)
|
|
180
|
+
return r.consume(n), O = !1, L = !1, _t;
|
|
181
181
|
}
|
|
182
|
-
return
|
|
182
|
+
return _n(n);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return n !== gn ? y(n) : (r.consume(n), G = n, O = !1,
|
|
184
|
+
function Sn(n) {
|
|
185
|
+
return n !== gn ? y(n) : (r.consume(n), G = n, O = !1, L = !1, Sn);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function _n(n) {
|
|
188
188
|
const p = G;
|
|
189
189
|
if (r.consume(n), G = n, !f && n === U) {
|
|
190
|
-
const
|
|
190
|
+
const E = {
|
|
191
191
|
type: p === et ? "labelImage" : "labelLink",
|
|
192
192
|
end: t.now()
|
|
193
193
|
};
|
|
194
|
-
On.push(
|
|
194
|
+
On.push(E), E.type === "labelLink" && tn.add(E);
|
|
195
195
|
}
|
|
196
196
|
const o = f;
|
|
197
|
-
return f ? O && n === j ? (f = !1, O = !1) : O = n === j : O && n === H ? (f = !0, O = !1) : O = n === H, !u && o !== f && (t.currentConstruct = f ? It : Un), f || (
|
|
197
|
+
return f ? O && n === j ? (f = !1, O = !1) : O = n === j : O && n === H ? (f = !0, O = !1) : O = n === H, !u && o !== f && (t.currentConstruct = f ? It : Un), f || (L && n === U && (s = !0), n === W && (s = !1), L = n === vn), y;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function _t(n) {
|
|
200
200
|
return s && (n === null || !yn.has(n)) || n === null || T(n) ? y(n) : (r.consume(n), G = null, y);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
let
|
|
204
|
-
return
|
|
205
|
-
function
|
|
202
|
+
function xt(n, p, o) {
|
|
203
|
+
let E = 0, h = 0;
|
|
204
|
+
return R;
|
|
205
|
+
function g(c) {
|
|
206
206
|
n.consume(c), k++;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return c === B ? (
|
|
208
|
+
function R(c) {
|
|
209
|
+
return c === B ? (E++, b++, g(c), R) : C(c);
|
|
210
210
|
}
|
|
211
211
|
function C(c) {
|
|
212
|
-
return c === null ? o(c) : T(c) ? u || l ? (P = l, o(c)) : n.check(Vn,
|
|
212
|
+
return c === null ? o(c) : T(c) ? u || l ? (P = l, o(c)) : n.check(Vn, m, Rn)(c) : c === B ? (h = 0, an(c)) : (g(c), C);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return
|
|
214
|
+
function m(c) {
|
|
215
|
+
return g(c), C;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Rn(c) {
|
|
218
218
|
return n.check({ partial: !0, tokenize: Cn }, un, o)(c);
|
|
219
219
|
}
|
|
220
220
|
function un(c) {
|
|
221
221
|
return P = !0, o(c);
|
|
222
222
|
}
|
|
223
223
|
function Cn(c, ln, w) {
|
|
224
|
-
let
|
|
224
|
+
let S = "";
|
|
225
225
|
return z;
|
|
226
226
|
function z(I) {
|
|
227
227
|
return c.consume(I), V;
|
|
228
228
|
}
|
|
229
229
|
function V(I) {
|
|
230
|
-
return I === null || T(I) ? (0,
|
|
230
|
+
return I === null || T(I) ? (0, Nn.isInlineCodeBoundaryLine)(S) ? ln(I) : w(I) : (S += I === fn ? " " : I === cn ? " " : String.fromCodePoint(I), c.consume(I), V);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
function an(c) {
|
|
234
|
-
return c === B ? (
|
|
234
|
+
return c === B ? (h++, g(c), an) : h === E ? p(c) : C(c);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Rt(n, p, o) {
|
|
238
238
|
return An ? en.call(this, An, "htmlText", n, p, o) : o;
|
|
239
239
|
}
|
|
240
240
|
function Ct(n, p, o) {
|
|
241
241
|
return Tn ? en.call(this, Tn, "autolink", n, p, o) : o;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return k = 0, r.check({ partial: !0, tokenize:
|
|
243
|
+
function bt(n) {
|
|
244
|
+
return k = 0, r.check({ partial: !0, tokenize: Rt }, N, _n)(n);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Nt(n, p, o) {
|
|
247
247
|
if (!In)
|
|
248
248
|
return o;
|
|
249
|
-
let
|
|
250
|
-
const
|
|
251
|
-
return en.call(
|
|
249
|
+
let E = !0, h = 0;
|
|
250
|
+
const g = Object.create(this, { previous: { value: null } });
|
|
251
|
+
return en.call(g, In, "mathText", {
|
|
252
252
|
...n,
|
|
253
|
-
consume(
|
|
254
|
-
|
|
253
|
+
consume(R) {
|
|
254
|
+
E && R === M ? F++ : E = !1, h = R === M ? h + 1 : 0, n.consume(R);
|
|
255
255
|
}
|
|
256
|
-
}, p, o, () =>
|
|
256
|
+
}, p, o, () => h === F, () => {
|
|
257
257
|
En = !0;
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function vt(n, p, o) {
|
|
261
261
|
if (!wn || !D)
|
|
262
262
|
return o;
|
|
263
|
-
const
|
|
264
|
-
events: { value: [["enter",
|
|
263
|
+
const E = { ...D }, h = Object.create(this, {
|
|
264
|
+
events: { value: [["enter", E]] },
|
|
265
|
+
_labelStarts: { value: [E] }
|
|
265
266
|
});
|
|
266
|
-
return en.call(
|
|
267
|
+
return en.call(h, wn, "resource", n, p, o);
|
|
267
268
|
}
|
|
268
|
-
function en(n, p, o,
|
|
269
|
+
function en(n, p, o, E, h, g = () => !1, R = () => {
|
|
269
270
|
}) {
|
|
270
|
-
let C = !1,
|
|
271
|
-
const
|
|
272
|
-
return c(
|
|
271
|
+
let C = !1, m = !1;
|
|
272
|
+
const Rn = n.tokenize.call(this, un(o), Cn, an);
|
|
273
|
+
return c(Rn);
|
|
273
274
|
function un(w) {
|
|
274
275
|
return {
|
|
275
276
|
...w,
|
|
276
|
-
consume(
|
|
277
|
-
k++, w.consume(
|
|
277
|
+
consume(S) {
|
|
278
|
+
k++, w.consume(S);
|
|
278
279
|
},
|
|
279
|
-
exit(
|
|
280
|
-
const z = w.exit(
|
|
281
|
-
return
|
|
280
|
+
exit(S) {
|
|
281
|
+
const z = w.exit(S);
|
|
282
|
+
return S === p && (C = !0), z;
|
|
282
283
|
},
|
|
283
|
-
attempt(
|
|
284
|
+
attempt(S, z, V) {
|
|
284
285
|
return w.attempt({
|
|
285
|
-
...
|
|
286
|
+
...S,
|
|
286
287
|
tokenize(I, qt, Kt) {
|
|
287
|
-
return
|
|
288
|
+
return S.tokenize.call(this, un(I), qt, Kt);
|
|
288
289
|
}
|
|
289
290
|
}, z, V);
|
|
290
291
|
}
|
|
291
292
|
};
|
|
292
293
|
}
|
|
293
294
|
function Cn(w) {
|
|
294
|
-
return
|
|
295
|
+
return m = !0, C ? E(w) : h(w);
|
|
295
296
|
}
|
|
296
297
|
function an(w) {
|
|
297
|
-
return
|
|
298
|
+
return m = !0, h(w);
|
|
298
299
|
}
|
|
299
300
|
function c(w) {
|
|
300
|
-
return (
|
|
301
|
-
if (!C && T(
|
|
302
|
-
return u || l ? ln(
|
|
303
|
-
return z(
|
|
301
|
+
return (S) => {
|
|
302
|
+
if (!C && T(S) && !g())
|
|
303
|
+
return u || l ? ln(S) : o.check(At, z, ln)(S);
|
|
304
|
+
return z(S);
|
|
304
305
|
function z(V) {
|
|
305
306
|
const I = w(V);
|
|
306
|
-
return I && !
|
|
307
|
+
return I && !m ? c(I) : I;
|
|
307
308
|
}
|
|
308
309
|
};
|
|
309
310
|
}
|
|
310
311
|
function ln(w) {
|
|
311
|
-
return
|
|
312
|
+
return R(), h(w);
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
-
return k ? (r.consume(n), G = n, k--, O = !1,
|
|
315
|
+
function N(n) {
|
|
316
|
+
return k ? (r.consume(n), G = n, k--, O = !1, L = !1, T(n) ? (r.exit("chunkText"), Lt) : N) : y(n);
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
-
return Jn(),
|
|
318
|
+
function Lt(n) {
|
|
319
|
+
return Jn(), N(n);
|
|
319
320
|
}
|
|
320
321
|
function yt(n) {
|
|
321
|
-
return !u && P && rn.add(nn), k =
|
|
322
|
+
return !u && P && rn.add(nn), k = b, N(n);
|
|
322
323
|
}
|
|
323
324
|
function zt(n) {
|
|
324
|
-
return !u && En && rn.add(e), k = F,
|
|
325
|
+
return !u && En && rn.add(e), k = F, N(n);
|
|
325
326
|
}
|
|
326
327
|
function Pt(n) {
|
|
327
328
|
if (D?.type === "labelLink") {
|
|
@@ -329,32 +330,32 @@ function Ut() {
|
|
|
329
330
|
p.inactive = !0;
|
|
330
331
|
tn.clear();
|
|
331
332
|
}
|
|
332
|
-
return s = !1,
|
|
333
|
+
return s = !1, N(n);
|
|
333
334
|
}
|
|
334
335
|
function Dt(n, p, o) {
|
|
335
|
-
let
|
|
336
|
-
return
|
|
337
|
-
function m
|
|
338
|
-
n.consume(
|
|
336
|
+
let E = !1;
|
|
337
|
+
return g;
|
|
338
|
+
function h(m) {
|
|
339
|
+
n.consume(m), k++;
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
-
return K(
|
|
341
|
+
function g(m) {
|
|
342
|
+
return K(m) ? (h(m), g) : R(m);
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
-
return
|
|
344
|
+
function R(m) {
|
|
345
|
+
return m === on ? (E = !0, h(m), R) : E ? C(m) : o(m);
|
|
345
346
|
}
|
|
346
|
-
function C(
|
|
347
|
-
return K(
|
|
347
|
+
function C(m) {
|
|
348
|
+
return K(m) ? (h(m), C) : m === null || T(m) ? p(m) : o(m);
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
351
|
function Bt(n) {
|
|
351
|
-
return
|
|
352
|
+
return _ ? (r.exit("chunkText"), r.enter(v), Xn(n)) : a(n);
|
|
352
353
|
}
|
|
353
354
|
function Xn(n) {
|
|
354
|
-
return k ? (r.consume(n), k--, Xn) : (r.exit(
|
|
355
|
+
return k ? (r.consume(n), k--, Xn) : (r.exit(v), $n(), r.exit(kn), i(n));
|
|
355
356
|
}
|
|
356
357
|
function Yn(n) {
|
|
357
|
-
return n === null ? (
|
|
358
|
+
return n === null ? (xn(), i(n)) : (Jn(), y(n));
|
|
358
359
|
}
|
|
359
360
|
function Jn() {
|
|
360
361
|
X.next = r.enter("chunkText", {
|
|
@@ -362,7 +363,7 @@ function Ut() {
|
|
|
362
363
|
previous: X
|
|
363
364
|
}), X = X.next;
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function xn() {
|
|
366
367
|
$n(), l || r.exit("paragraph"), r.exit(kn);
|
|
367
368
|
}
|
|
368
369
|
function $n() {
|
|
@@ -374,24 +375,24 @@ function Ut() {
|
|
|
374
375
|
n.add(p);
|
|
375
376
|
}
|
|
376
377
|
function dn(n) {
|
|
377
|
-
return
|
|
378
|
+
return _ ? (r.exit("chunkText"), xn(), i(n)) : a(n);
|
|
378
379
|
}
|
|
379
380
|
function Mt(n) {
|
|
380
381
|
return r.consume(n), G = null, r.exit("chunkText"), Yn;
|
|
381
382
|
}
|
|
382
383
|
function nt(n, p, o) {
|
|
383
|
-
return
|
|
384
|
-
function g
|
|
385
|
-
return n.consume(
|
|
384
|
+
return E;
|
|
385
|
+
function E(g) {
|
|
386
|
+
return n.consume(g), h;
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
-
return K(
|
|
388
|
+
function h(g) {
|
|
389
|
+
return K(g) ? (n.consume(g), h) : g === null || T(g) ? o(g) : n.check(Tt, p, n.interrupt(wt, o, p))(g);
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
392
|
function Ht(n, p, o) {
|
|
392
|
-
return (
|
|
393
|
-
function
|
|
394
|
-
return (
|
|
393
|
+
return (h) => (n.enter(x), nt(n, E(p), E(o))(h));
|
|
394
|
+
function E(h) {
|
|
395
|
+
return (g) => (n.exit(x), h(g));
|
|
395
396
|
}
|
|
396
397
|
}
|
|
397
398
|
function jt(n, p, o) {
|
|
@@ -424,7 +425,7 @@ function Ut() {
|
|
|
424
425
|
previous: ft,
|
|
425
426
|
tokenize: Pn
|
|
426
427
|
},
|
|
427
|
-
[
|
|
428
|
+
[vn]: {
|
|
428
429
|
name: "flowInteraction",
|
|
429
430
|
tokenize: ct
|
|
430
431
|
},
|
|
@@ -475,7 +476,7 @@ function Ut() {
|
|
|
475
476
|
let i = qn.get(r);
|
|
476
477
|
return i || (i = function(a, l) {
|
|
477
478
|
const u = a.startsWith("\uFEFF") ? a.slice(1) : a;
|
|
478
|
-
$.push((0,
|
|
479
|
+
$.push((0, Nn.findRejectedDocumentInlineOpenings)(u));
|
|
479
480
|
try {
|
|
480
481
|
return r.call(this, a, l);
|
|
481
482
|
} finally {
|
|
@@ -526,7 +527,7 @@ function Ut() {
|
|
|
526
527
|
i("micromarkExtensions", Z), i("fromMarkdownExtensions", kt);
|
|
527
528
|
}
|
|
528
529
|
const Z = Mn(), kt = Hn();
|
|
529
|
-
})(
|
|
530
|
+
})(bn), bn);
|
|
530
531
|
}
|
|
531
532
|
export {
|
|
532
533
|
Ut as __require
|