hermium 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/bin/hermium.mjs +185 -164
- package/dist/api.mjs +3513 -0
- package/dist/public/assets/css/index-Dfs9RUU9.css +1 -0
- package/dist/public/assets/css/styles-B8p6jk5Z.css +1 -0
- package/dist/public/assets/js/ChatInputBlock-Bw7AL70H.js +1 -0
- package/dist/public/assets/js/MarkdownMessage-8d7Y6VL-.js +1 -0
- package/dist/public/assets/js/base-ui-BvQbAt_1.js +1 -0
- package/dist/public/assets/js/chat._sessionId-BG6lVraH.js +1 -0
- package/dist/public/assets/js/chat.index-D2zdMPTT.js +1 -0
- package/dist/public/assets/js/index-C0AK45FU.js +60 -0
- package/dist/public/assets/js/index-Cx5En4FK.js +1 -0
- package/dist/public/assets/js/memory-CeSRdTkW.js +3 -0
- package/dist/public/assets/js/router-8uDKazL-.js +1 -0
- package/dist/public/assets/js/settings-Bc3Y5zXO.js +1 -0
- package/dist/public/assets/js/skills-DZv7sA_5.js +1 -0
- package/dist/public/assets/js/theme-CPkdkpaj.js +1 -0
- package/dist/public/assets/js/usage-DXQsT9_b.js +1 -0
- package/dist/public/assets/woff2/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/public/assets/woff2/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/public/assets/woff2/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/public/assets/woff2/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/public/assets/woff2/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/logo.png +0 -0
- package/package.json +1 -1
- package/dist/public/assets/IconAlertCircle-BHkmI3j7.js +0 -1
- package/dist/public/assets/IconAlertTriangle-wCJudlVg.js +0 -1
- package/dist/public/assets/IconCheck-CFuEh_p7.js +0 -1
- package/dist/public/assets/IconLoader2-BIx3OuF9.js +0 -1
- package/dist/public/assets/IconRefresh-Dgm93w3T.js +0 -1
- package/dist/public/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
- package/dist/public/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
- package/dist/public/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
- package/dist/public/assets/index-Bbz3abmO.js +0 -14
- package/dist/public/assets/index-CWUaRwcE.js +0 -1
- package/dist/public/assets/index-CinLq3cd.js +0 -1
- package/dist/public/assets/index-CrQs9n6q.js +0 -29
- package/dist/public/assets/index-CtacpN3I.js +0 -1
- package/dist/public/assets/index-DY7aE-9s.js +0 -2
- package/dist/public/assets/index-DkYGodJj.js +0 -94
- package/dist/public/assets/index-DvDLadUx.js +0 -1
- package/dist/public/assets/index-U6RcWedt.js +0 -1
- package/dist/public/assets/index-_6iFZ0fh.js +0 -1
- package/dist/public/assets/index-enFS26SU.js +0 -1
- package/dist/public/assets/input-eNcwlDHp.js +0 -1
- package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/public/assets/queries-iHRgZzw2.js +0 -1
- package/dist/public/assets/styles-KcflDlA_.css +0 -1
- package/dist/public/assets/switch-B1DcZLwL.js +0 -1
- package/dist/public/assets/syntax-highlighter-DWPF-A_h.js +0 -6
- package/dist/public/assets/textarea-Di_syYTS.js +0 -1
- package/dist/public/favicon.png +0 -0
- package/dist/public/nous-logo.png +0 -0
- package/dist/server/index.mjs +0 -244
- package/dist/web-server/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +0 -6
- package/dist/web-server/_chunks/ssr-renderer.mjs +0 -22
- package/dist/web-server/_libs/babel__runtime.mjs +0 -237
- package/dist/web-server/_libs/bail.mjs +0 -8
- package/dist/web-server/_libs/base-ui__react.mjs +0 -9554
- package/dist/web-server/_libs/base-ui__utils.mjs +0 -1101
- package/dist/web-server/_libs/ccount.mjs +0 -16
- package/dist/web-server/_libs/character-entities-legacy.mjs +0 -111
- package/dist/web-server/_libs/character-entities.mjs +0 -2130
- package/dist/web-server/_libs/character-reference-invalid.mjs +0 -33
- package/dist/web-server/_libs/class-variance-authority.mjs +0 -44
- package/dist/web-server/_libs/clsx.mjs +0 -16
- package/dist/web-server/_libs/comma-separated-tokens.mjs +0 -31
- package/dist/web-server/_libs/cookie-es.mjs +0 -44
- package/dist/web-server/_libs/croner.mjs +0 -1
- package/dist/web-server/_libs/crossws.mjs +0 -1
- package/dist/web-server/_libs/decode-named-character-reference+[...].mjs +0 -8
- package/dist/web-server/_libs/devlop.mjs +0 -8
- package/dist/web-server/_libs/escape-string-regexp.mjs +0 -9
- package/dist/web-server/_libs/estree-util-is-identifier-name.mjs +0 -11
- package/dist/web-server/_libs/extend.mjs +0 -97
- package/dist/web-server/_libs/fault.mjs +0 -1
- package/dist/web-server/_libs/floating-ui__core.mjs +0 -663
- package/dist/web-server/_libs/floating-ui__dom.mjs +0 -624
- package/dist/web-server/_libs/floating-ui__react-dom.mjs +0 -279
- package/dist/web-server/_libs/floating-ui__utils.mjs +0 -322
- package/dist/web-server/_libs/format.mjs +0 -1
- package/dist/web-server/_libs/h3.mjs +0 -408
- package/dist/web-server/_libs/hast-util-parse-selector.mjs +0 -39
- package/dist/web-server/_libs/hast-util-to-jsx-runtime.mjs +0 -388
- package/dist/web-server/_libs/hast-util-whitespace.mjs +0 -10
- package/dist/web-server/_libs/hastscript.mjs +0 -200
- package/dist/web-server/_libs/highlight.js.mjs +0 -1
- package/dist/web-server/_libs/hookable.mjs +0 -1
- package/dist/web-server/_libs/html-url-attributes.mjs +0 -26
- package/dist/web-server/_libs/inline-style-parser.mjs +0 -142
- package/dist/web-server/_libs/is-alphabetical.mjs +0 -7
- package/dist/web-server/_libs/is-alphanumerical.mjs +0 -8
- package/dist/web-server/_libs/is-decimal.mjs +0 -7
- package/dist/web-server/_libs/is-hexadecimal.mjs +0 -7
- package/dist/web-server/_libs/is-plain-obj.mjs +0 -10
- package/dist/web-server/_libs/isbot.mjs +0 -21
- package/dist/web-server/_libs/longest-streak.mjs +0 -25
- package/dist/web-server/_libs/lowlight.mjs +0 -1
- package/dist/web-server/_libs/markdown-table.mjs +0 -142
- package/dist/web-server/_libs/mdast-util-find-and-replace.mjs +0 -109
- package/dist/web-server/_libs/mdast-util-from-markdown.mjs +0 -717
- package/dist/web-server/_libs/mdast-util-gfm-autolink-literal+[...].mjs +0 -156
- package/dist/web-server/_libs/mdast-util-gfm-footnote.mjs +0 -117
- package/dist/web-server/_libs/mdast-util-gfm-strikethrough.mjs +0 -54
- package/dist/web-server/_libs/mdast-util-gfm-table.mjs +0 -157
- package/dist/web-server/_libs/mdast-util-gfm-task-list-item.mjs +0 -77
- package/dist/web-server/_libs/mdast-util-gfm.mjs +0 -29
- package/dist/web-server/_libs/mdast-util-phrasing.mjs +0 -30
- package/dist/web-server/_libs/mdast-util-to-hast.mjs +0 -710
- package/dist/web-server/_libs/mdast-util-to-markdown.mjs +0 -798
- package/dist/web-server/_libs/mdast-util-to-string.mjs +0 -38
- package/dist/web-server/_libs/micromark-core-commonmark.mjs +0 -2259
- package/dist/web-server/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +0 -344
- package/dist/web-server/_libs/micromark-extension-gfm-footnote+[...].mjs +0 -279
- package/dist/web-server/_libs/micromark-extension-gfm-strikethrough+[...].mjs +0 -98
- package/dist/web-server/_libs/micromark-extension-gfm-table.mjs +0 -491
- package/dist/web-server/_libs/micromark-extension-gfm-tagfilter+[...].mjs +0 -1
- package/dist/web-server/_libs/micromark-extension-gfm-task-list-item+[...].mjs +0 -77
- package/dist/web-server/_libs/micromark-extension-gfm.mjs +0 -18
- package/dist/web-server/_libs/micromark-factory-destination.mjs +0 -94
- package/dist/web-server/_libs/micromark-factory-label.mjs +0 -63
- package/dist/web-server/_libs/micromark-factory-space.mjs +0 -24
- package/dist/web-server/_libs/micromark-factory-title.mjs +0 -65
- package/dist/web-server/_libs/micromark-factory-whitespace.mjs +0 -22
- package/dist/web-server/_libs/micromark-util-character.mjs +0 -44
- package/dist/web-server/_libs/micromark-util-chunked.mjs +0 -36
- package/dist/web-server/_libs/micromark-util-classify-character+[...].mjs +0 -12
- package/dist/web-server/_libs/micromark-util-combine-extensions+[...].mjs +0 -41
- package/dist/web-server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +0 -19
- package/dist/web-server/_libs/micromark-util-decode-string.mjs +0 -21
- package/dist/web-server/_libs/micromark-util-encode.mjs +0 -1
- package/dist/web-server/_libs/micromark-util-html-tag-name.mjs +0 -69
- package/dist/web-server/_libs/micromark-util-normalize-identifier+[...].mjs +0 -6
- package/dist/web-server/_libs/micromark-util-resolve-all.mjs +0 -15
- package/dist/web-server/_libs/micromark-util-sanitize-uri.mjs +0 -41
- package/dist/web-server/_libs/micromark-util-subtokenize.mjs +0 -346
- package/dist/web-server/_libs/micromark.mjs +0 -906
- package/dist/web-server/_libs/ocache.mjs +0 -1
- package/dist/web-server/_libs/ohash.mjs +0 -1
- package/dist/web-server/_libs/parse-entities.mjs +0 -245
- package/dist/web-server/_libs/property-information.mjs +0 -1210
- package/dist/web-server/_libs/react-dom.mjs +0 -10779
- package/dist/web-server/_libs/react-markdown.mjs +0 -147
- package/dist/web-server/_libs/react-syntax-highlighter.mjs +0 -941
- package/dist/web-server/_libs/react.mjs +0 -513
- package/dist/web-server/_libs/refractor.mjs +0 -2425
- package/dist/web-server/_libs/remark-gfm.mjs +0 -20
- package/dist/web-server/_libs/remark-parse.mjs +0 -19
- package/dist/web-server/_libs/remark-rehype.mjs +0 -21
- package/dist/web-server/_libs/reselect.mjs +0 -1
- package/dist/web-server/_libs/rou3.mjs +0 -8
- package/dist/web-server/_libs/seroval-plugins.mjs +0 -58
- package/dist/web-server/_libs/seroval.mjs +0 -1775
- package/dist/web-server/_libs/space-separated-tokens.mjs +0 -11
- package/dist/web-server/_libs/srvx.mjs +0 -781
- package/dist/web-server/_libs/style-to-js.mjs +0 -72
- package/dist/web-server/_libs/style-to-object.mjs +0 -38
- package/dist/web-server/_libs/tabler__icons-react.mjs +0 -230
- package/dist/web-server/_libs/tanstack__history.mjs +0 -204
- package/dist/web-server/_libs/tanstack__query-core.mjs +0 -2552
- package/dist/web-server/_libs/tanstack__react-query.mjs +0 -190
- package/dist/web-server/_libs/tanstack__react-router.mjs +0 -1120
- package/dist/web-server/_libs/tanstack__react-store.mjs +0 -2
- package/dist/web-server/_libs/tanstack__router-core.mjs +0 -4288
- package/dist/web-server/_libs/tanstack__store.mjs +0 -1
- package/dist/web-server/_libs/trim-lines.mjs +0 -41
- package/dist/web-server/_libs/trough.mjs +0 -85
- package/dist/web-server/_libs/ufo.mjs +0 -54
- package/dist/web-server/_libs/unctx.mjs +0 -1
- package/dist/web-server/_libs/ungap__structured-clone.mjs +0 -224
- package/dist/web-server/_libs/unified.mjs +0 -661
- package/dist/web-server/_libs/unist-util-is.mjs +0 -100
- package/dist/web-server/_libs/unist-util-position.mjs +0 -27
- package/dist/web-server/_libs/unist-util-stringify-position.mjs +0 -27
- package/dist/web-server/_libs/unist-util-visit-parents.mjs +0 -83
- package/dist/web-server/_libs/unist-util-visit.mjs +0 -24
- package/dist/web-server/_libs/unstorage.mjs +0 -1
- package/dist/web-server/_libs/use-sync-external-store.mjs +0 -139
- package/dist/web-server/_libs/vfile-message.mjs +0 -138
- package/dist/web-server/_libs/vfile.mjs +0 -467
- package/dist/web-server/_libs/zod.mjs +0 -3915
- package/dist/web-server/_libs/zustand.mjs +0 -343
- package/dist/web-server/_libs/zwitch.mjs +0 -1
- package/dist/web-server/_ssr/index-0n2Z3BPQ.mjs +0 -369
- package/dist/web-server/_ssr/index-6itDALOw.mjs +0 -339
- package/dist/web-server/_ssr/index-BIRTrOmp.mjs +0 -449
- package/dist/web-server/_ssr/index-BPzfADac.mjs +0 -66
- package/dist/web-server/_ssr/index-BQE3bF14.mjs +0 -1870
- package/dist/web-server/_ssr/index-C5HpvlUP.mjs +0 -190
- package/dist/web-server/_ssr/index-C_ZxnypN.mjs +0 -213
- package/dist/web-server/_ssr/index-Ca8JFH8f.mjs +0 -612
- package/dist/web-server/_ssr/index-DNVESZiA.mjs +0 -513
- package/dist/web-server/_ssr/index.mjs +0 -1558
- package/dist/web-server/_ssr/input-CqXjTRQg.mjs +0 -20
- package/dist/web-server/_ssr/queries-3H_19mUt.mjs +0 -16
- package/dist/web-server/_ssr/router-sbsNus0Y.mjs +0 -2093
- package/dist/web-server/_ssr/start-HYkvq4Ni.mjs +0 -4
- package/dist/web-server/_ssr/switch-usf2F1UM.mjs +0 -33
- package/dist/web-server/_ssr/syntax-highlighter-5vezNTce.mjs +0 -62
- package/dist/web-server/_ssr/textarea-DfRheWY0.mjs +0 -18
- package/dist/web-server/_tanstack-start-manifest_v-DqW-pKEH.mjs +0 -4
- package/dist/web-server/index.mjs +0 -597
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import { a as asciiAlphanumeric, e as asciiAlpha, c as markdownLineEndingOrSpace, u as unicodeWhitespace, d as unicodePunctuation, f as asciiControl } from "./micromark-util-character.mjs";
|
|
2
|
-
const wwwPrefix = {
|
|
3
|
-
tokenize: tokenizeWwwPrefix,
|
|
4
|
-
partial: true
|
|
5
|
-
};
|
|
6
|
-
const domain = {
|
|
7
|
-
tokenize: tokenizeDomain,
|
|
8
|
-
partial: true
|
|
9
|
-
};
|
|
10
|
-
const path = {
|
|
11
|
-
tokenize: tokenizePath,
|
|
12
|
-
partial: true
|
|
13
|
-
};
|
|
14
|
-
const trail = {
|
|
15
|
-
tokenize: tokenizeTrail,
|
|
16
|
-
partial: true
|
|
17
|
-
};
|
|
18
|
-
const emailDomainDotTrail = {
|
|
19
|
-
tokenize: tokenizeEmailDomainDotTrail,
|
|
20
|
-
partial: true
|
|
21
|
-
};
|
|
22
|
-
const wwwAutolink = {
|
|
23
|
-
name: "wwwAutolink",
|
|
24
|
-
tokenize: tokenizeWwwAutolink,
|
|
25
|
-
previous: previousWww
|
|
26
|
-
};
|
|
27
|
-
const protocolAutolink = {
|
|
28
|
-
name: "protocolAutolink",
|
|
29
|
-
tokenize: tokenizeProtocolAutolink,
|
|
30
|
-
previous: previousProtocol
|
|
31
|
-
};
|
|
32
|
-
const emailAutolink = {
|
|
33
|
-
name: "emailAutolink",
|
|
34
|
-
tokenize: tokenizeEmailAutolink,
|
|
35
|
-
previous: previousEmail
|
|
36
|
-
};
|
|
37
|
-
const text = {};
|
|
38
|
-
function gfmAutolinkLiteral() {
|
|
39
|
-
return {
|
|
40
|
-
text
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
let code = 48;
|
|
44
|
-
while (code < 123) {
|
|
45
|
-
text[code] = emailAutolink;
|
|
46
|
-
code++;
|
|
47
|
-
if (code === 58) code = 65;
|
|
48
|
-
else if (code === 91) code = 97;
|
|
49
|
-
}
|
|
50
|
-
text[43] = emailAutolink;
|
|
51
|
-
text[45] = emailAutolink;
|
|
52
|
-
text[46] = emailAutolink;
|
|
53
|
-
text[95] = emailAutolink;
|
|
54
|
-
text[72] = [emailAutolink, protocolAutolink];
|
|
55
|
-
text[104] = [emailAutolink, protocolAutolink];
|
|
56
|
-
text[87] = [emailAutolink, wwwAutolink];
|
|
57
|
-
text[119] = [emailAutolink, wwwAutolink];
|
|
58
|
-
function tokenizeEmailAutolink(effects, ok, nok) {
|
|
59
|
-
const self = this;
|
|
60
|
-
let dot;
|
|
61
|
-
let data;
|
|
62
|
-
return start;
|
|
63
|
-
function start(code2) {
|
|
64
|
-
if (!gfmAtext(code2) || !previousEmail.call(self, self.previous) || previousUnbalanced(self.events)) {
|
|
65
|
-
return nok(code2);
|
|
66
|
-
}
|
|
67
|
-
effects.enter("literalAutolink");
|
|
68
|
-
effects.enter("literalAutolinkEmail");
|
|
69
|
-
return atext(code2);
|
|
70
|
-
}
|
|
71
|
-
function atext(code2) {
|
|
72
|
-
if (gfmAtext(code2)) {
|
|
73
|
-
effects.consume(code2);
|
|
74
|
-
return atext;
|
|
75
|
-
}
|
|
76
|
-
if (code2 === 64) {
|
|
77
|
-
effects.consume(code2);
|
|
78
|
-
return emailDomain;
|
|
79
|
-
}
|
|
80
|
-
return nok(code2);
|
|
81
|
-
}
|
|
82
|
-
function emailDomain(code2) {
|
|
83
|
-
if (code2 === 46) {
|
|
84
|
-
return effects.check(emailDomainDotTrail, emailDomainAfter, emailDomainDot)(code2);
|
|
85
|
-
}
|
|
86
|
-
if (code2 === 45 || code2 === 95 || asciiAlphanumeric(code2)) {
|
|
87
|
-
data = true;
|
|
88
|
-
effects.consume(code2);
|
|
89
|
-
return emailDomain;
|
|
90
|
-
}
|
|
91
|
-
return emailDomainAfter(code2);
|
|
92
|
-
}
|
|
93
|
-
function emailDomainDot(code2) {
|
|
94
|
-
effects.consume(code2);
|
|
95
|
-
dot = true;
|
|
96
|
-
return emailDomain;
|
|
97
|
-
}
|
|
98
|
-
function emailDomainAfter(code2) {
|
|
99
|
-
if (data && dot && asciiAlpha(self.previous)) {
|
|
100
|
-
effects.exit("literalAutolinkEmail");
|
|
101
|
-
effects.exit("literalAutolink");
|
|
102
|
-
return ok(code2);
|
|
103
|
-
}
|
|
104
|
-
return nok(code2);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function tokenizeWwwAutolink(effects, ok, nok) {
|
|
108
|
-
const self = this;
|
|
109
|
-
return wwwStart;
|
|
110
|
-
function wwwStart(code2) {
|
|
111
|
-
if (code2 !== 87 && code2 !== 119 || !previousWww.call(self, self.previous) || previousUnbalanced(self.events)) {
|
|
112
|
-
return nok(code2);
|
|
113
|
-
}
|
|
114
|
-
effects.enter("literalAutolink");
|
|
115
|
-
effects.enter("literalAutolinkWww");
|
|
116
|
-
return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path, wwwAfter), nok), nok)(code2);
|
|
117
|
-
}
|
|
118
|
-
function wwwAfter(code2) {
|
|
119
|
-
effects.exit("literalAutolinkWww");
|
|
120
|
-
effects.exit("literalAutolink");
|
|
121
|
-
return ok(code2);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function tokenizeProtocolAutolink(effects, ok, nok) {
|
|
125
|
-
const self = this;
|
|
126
|
-
let buffer = "";
|
|
127
|
-
let seen = false;
|
|
128
|
-
return protocolStart;
|
|
129
|
-
function protocolStart(code2) {
|
|
130
|
-
if ((code2 === 72 || code2 === 104) && previousProtocol.call(self, self.previous) && !previousUnbalanced(self.events)) {
|
|
131
|
-
effects.enter("literalAutolink");
|
|
132
|
-
effects.enter("literalAutolinkHttp");
|
|
133
|
-
buffer += String.fromCodePoint(code2);
|
|
134
|
-
effects.consume(code2);
|
|
135
|
-
return protocolPrefixInside;
|
|
136
|
-
}
|
|
137
|
-
return nok(code2);
|
|
138
|
-
}
|
|
139
|
-
function protocolPrefixInside(code2) {
|
|
140
|
-
if (asciiAlpha(code2) && buffer.length < 5) {
|
|
141
|
-
buffer += String.fromCodePoint(code2);
|
|
142
|
-
effects.consume(code2);
|
|
143
|
-
return protocolPrefixInside;
|
|
144
|
-
}
|
|
145
|
-
if (code2 === 58) {
|
|
146
|
-
const protocol = buffer.toLowerCase();
|
|
147
|
-
if (protocol === "http" || protocol === "https") {
|
|
148
|
-
effects.consume(code2);
|
|
149
|
-
return protocolSlashesInside;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return nok(code2);
|
|
153
|
-
}
|
|
154
|
-
function protocolSlashesInside(code2) {
|
|
155
|
-
if (code2 === 47) {
|
|
156
|
-
effects.consume(code2);
|
|
157
|
-
if (seen) {
|
|
158
|
-
return afterProtocol;
|
|
159
|
-
}
|
|
160
|
-
seen = true;
|
|
161
|
-
return protocolSlashesInside;
|
|
162
|
-
}
|
|
163
|
-
return nok(code2);
|
|
164
|
-
}
|
|
165
|
-
function afterProtocol(code2) {
|
|
166
|
-
return code2 === null || asciiControl(code2) || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2) || unicodePunctuation(code2) ? nok(code2) : effects.attempt(domain, effects.attempt(path, protocolAfter), nok)(code2);
|
|
167
|
-
}
|
|
168
|
-
function protocolAfter(code2) {
|
|
169
|
-
effects.exit("literalAutolinkHttp");
|
|
170
|
-
effects.exit("literalAutolink");
|
|
171
|
-
return ok(code2);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function tokenizeWwwPrefix(effects, ok, nok) {
|
|
175
|
-
let size = 0;
|
|
176
|
-
return wwwPrefixInside;
|
|
177
|
-
function wwwPrefixInside(code2) {
|
|
178
|
-
if ((code2 === 87 || code2 === 119) && size < 3) {
|
|
179
|
-
size++;
|
|
180
|
-
effects.consume(code2);
|
|
181
|
-
return wwwPrefixInside;
|
|
182
|
-
}
|
|
183
|
-
if (code2 === 46 && size === 3) {
|
|
184
|
-
effects.consume(code2);
|
|
185
|
-
return wwwPrefixAfter;
|
|
186
|
-
}
|
|
187
|
-
return nok(code2);
|
|
188
|
-
}
|
|
189
|
-
function wwwPrefixAfter(code2) {
|
|
190
|
-
return code2 === null ? nok(code2) : ok(code2);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function tokenizeDomain(effects, ok, nok) {
|
|
194
|
-
let underscoreInLastSegment;
|
|
195
|
-
let underscoreInLastLastSegment;
|
|
196
|
-
let seen;
|
|
197
|
-
return domainInside;
|
|
198
|
-
function domainInside(code2) {
|
|
199
|
-
if (code2 === 46 || code2 === 95) {
|
|
200
|
-
return effects.check(trail, domainAfter, domainAtPunctuation)(code2);
|
|
201
|
-
}
|
|
202
|
-
if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2) || code2 !== 45 && unicodePunctuation(code2)) {
|
|
203
|
-
return domainAfter(code2);
|
|
204
|
-
}
|
|
205
|
-
seen = true;
|
|
206
|
-
effects.consume(code2);
|
|
207
|
-
return domainInside;
|
|
208
|
-
}
|
|
209
|
-
function domainAtPunctuation(code2) {
|
|
210
|
-
if (code2 === 95) {
|
|
211
|
-
underscoreInLastSegment = true;
|
|
212
|
-
} else {
|
|
213
|
-
underscoreInLastLastSegment = underscoreInLastSegment;
|
|
214
|
-
underscoreInLastSegment = void 0;
|
|
215
|
-
}
|
|
216
|
-
effects.consume(code2);
|
|
217
|
-
return domainInside;
|
|
218
|
-
}
|
|
219
|
-
function domainAfter(code2) {
|
|
220
|
-
if (underscoreInLastLastSegment || underscoreInLastSegment || !seen) {
|
|
221
|
-
return nok(code2);
|
|
222
|
-
}
|
|
223
|
-
return ok(code2);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
function tokenizePath(effects, ok) {
|
|
227
|
-
let sizeOpen = 0;
|
|
228
|
-
let sizeClose = 0;
|
|
229
|
-
return pathInside;
|
|
230
|
-
function pathInside(code2) {
|
|
231
|
-
if (code2 === 40) {
|
|
232
|
-
sizeOpen++;
|
|
233
|
-
effects.consume(code2);
|
|
234
|
-
return pathInside;
|
|
235
|
-
}
|
|
236
|
-
if (code2 === 41 && sizeClose < sizeOpen) {
|
|
237
|
-
return pathAtPunctuation(code2);
|
|
238
|
-
}
|
|
239
|
-
if (code2 === 33 || code2 === 34 || code2 === 38 || code2 === 39 || code2 === 41 || code2 === 42 || code2 === 44 || code2 === 46 || code2 === 58 || code2 === 59 || code2 === 60 || code2 === 63 || code2 === 93 || code2 === 95 || code2 === 126) {
|
|
240
|
-
return effects.check(trail, ok, pathAtPunctuation)(code2);
|
|
241
|
-
}
|
|
242
|
-
if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
|
|
243
|
-
return ok(code2);
|
|
244
|
-
}
|
|
245
|
-
effects.consume(code2);
|
|
246
|
-
return pathInside;
|
|
247
|
-
}
|
|
248
|
-
function pathAtPunctuation(code2) {
|
|
249
|
-
if (code2 === 41) {
|
|
250
|
-
sizeClose++;
|
|
251
|
-
}
|
|
252
|
-
effects.consume(code2);
|
|
253
|
-
return pathInside;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function tokenizeTrail(effects, ok, nok) {
|
|
257
|
-
return trail2;
|
|
258
|
-
function trail2(code2) {
|
|
259
|
-
if (code2 === 33 || code2 === 34 || code2 === 39 || code2 === 41 || code2 === 42 || code2 === 44 || code2 === 46 || code2 === 58 || code2 === 59 || code2 === 63 || code2 === 95 || code2 === 126) {
|
|
260
|
-
effects.consume(code2);
|
|
261
|
-
return trail2;
|
|
262
|
-
}
|
|
263
|
-
if (code2 === 38) {
|
|
264
|
-
effects.consume(code2);
|
|
265
|
-
return trailCharacterReferenceStart;
|
|
266
|
-
}
|
|
267
|
-
if (code2 === 93) {
|
|
268
|
-
effects.consume(code2);
|
|
269
|
-
return trailBracketAfter;
|
|
270
|
-
}
|
|
271
|
-
if (
|
|
272
|
-
// `<` is an end.
|
|
273
|
-
code2 === 60 || // So is whitespace.
|
|
274
|
-
code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)
|
|
275
|
-
) {
|
|
276
|
-
return ok(code2);
|
|
277
|
-
}
|
|
278
|
-
return nok(code2);
|
|
279
|
-
}
|
|
280
|
-
function trailBracketAfter(code2) {
|
|
281
|
-
if (code2 === null || code2 === 40 || code2 === 91 || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
|
|
282
|
-
return ok(code2);
|
|
283
|
-
}
|
|
284
|
-
return trail2(code2);
|
|
285
|
-
}
|
|
286
|
-
function trailCharacterReferenceStart(code2) {
|
|
287
|
-
return asciiAlpha(code2) ? trailCharacterReferenceInside(code2) : nok(code2);
|
|
288
|
-
}
|
|
289
|
-
function trailCharacterReferenceInside(code2) {
|
|
290
|
-
if (code2 === 59) {
|
|
291
|
-
effects.consume(code2);
|
|
292
|
-
return trail2;
|
|
293
|
-
}
|
|
294
|
-
if (asciiAlpha(code2)) {
|
|
295
|
-
effects.consume(code2);
|
|
296
|
-
return trailCharacterReferenceInside;
|
|
297
|
-
}
|
|
298
|
-
return nok(code2);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function tokenizeEmailDomainDotTrail(effects, ok, nok) {
|
|
302
|
-
return start;
|
|
303
|
-
function start(code2) {
|
|
304
|
-
effects.consume(code2);
|
|
305
|
-
return after;
|
|
306
|
-
}
|
|
307
|
-
function after(code2) {
|
|
308
|
-
return asciiAlphanumeric(code2) ? nok(code2) : ok(code2);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
function previousWww(code2) {
|
|
312
|
-
return code2 === null || code2 === 40 || code2 === 42 || code2 === 95 || code2 === 91 || code2 === 93 || code2 === 126 || markdownLineEndingOrSpace(code2);
|
|
313
|
-
}
|
|
314
|
-
function previousProtocol(code2) {
|
|
315
|
-
return !asciiAlpha(code2);
|
|
316
|
-
}
|
|
317
|
-
function previousEmail(code2) {
|
|
318
|
-
return !(code2 === 47 || gfmAtext(code2));
|
|
319
|
-
}
|
|
320
|
-
function gfmAtext(code2) {
|
|
321
|
-
return code2 === 43 || code2 === 45 || code2 === 46 || code2 === 95 || asciiAlphanumeric(code2);
|
|
322
|
-
}
|
|
323
|
-
function previousUnbalanced(events) {
|
|
324
|
-
let index = events.length;
|
|
325
|
-
let result = false;
|
|
326
|
-
while (index--) {
|
|
327
|
-
const token = events[index][1];
|
|
328
|
-
if ((token.type === "labelLink" || token.type === "labelImage") && !token._balanced) {
|
|
329
|
-
result = true;
|
|
330
|
-
break;
|
|
331
|
-
}
|
|
332
|
-
if (token._gfmAutolinkLiteralWalkedInto) {
|
|
333
|
-
result = false;
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
if (events.length > 0 && !result) {
|
|
338
|
-
events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true;
|
|
339
|
-
}
|
|
340
|
-
return result;
|
|
341
|
-
}
|
|
342
|
-
export {
|
|
343
|
-
gfmAutolinkLiteral as g
|
|
344
|
-
};
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { f as factorySpace } from "./micromark-factory-space.mjs";
|
|
2
|
-
import { c as markdownLineEndingOrSpace } from "./micromark-util-character.mjs";
|
|
3
|
-
import { n as normalizeIdentifier } from "./micromark-util-normalize-identifier+[...].mjs";
|
|
4
|
-
import { b as blankLine } from "./micromark-core-commonmark.mjs";
|
|
5
|
-
const indent = {
|
|
6
|
-
tokenize: tokenizeIndent,
|
|
7
|
-
partial: true
|
|
8
|
-
};
|
|
9
|
-
function gfmFootnote() {
|
|
10
|
-
return {
|
|
11
|
-
document: {
|
|
12
|
-
[91]: {
|
|
13
|
-
name: "gfmFootnoteDefinition",
|
|
14
|
-
tokenize: tokenizeDefinitionStart,
|
|
15
|
-
continuation: {
|
|
16
|
-
tokenize: tokenizeDefinitionContinuation
|
|
17
|
-
},
|
|
18
|
-
exit: gfmFootnoteDefinitionEnd
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
text: {
|
|
22
|
-
[91]: {
|
|
23
|
-
name: "gfmFootnoteCall",
|
|
24
|
-
tokenize: tokenizeGfmFootnoteCall
|
|
25
|
-
},
|
|
26
|
-
[93]: {
|
|
27
|
-
name: "gfmPotentialFootnoteCall",
|
|
28
|
-
add: "after",
|
|
29
|
-
tokenize: tokenizePotentialGfmFootnoteCall,
|
|
30
|
-
resolveTo: resolveToPotentialGfmFootnoteCall
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function tokenizePotentialGfmFootnoteCall(effects, ok, nok) {
|
|
36
|
-
const self = this;
|
|
37
|
-
let index = self.events.length;
|
|
38
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
39
|
-
let labelStart;
|
|
40
|
-
while (index--) {
|
|
41
|
-
const token = self.events[index][1];
|
|
42
|
-
if (token.type === "labelImage") {
|
|
43
|
-
labelStart = token;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
if (token.type === "gfmFootnoteCall" || token.type === "labelLink" || token.type === "label" || token.type === "image" || token.type === "link") {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return start;
|
|
51
|
-
function start(code) {
|
|
52
|
-
if (!labelStart || !labelStart._balanced) {
|
|
53
|
-
return nok(code);
|
|
54
|
-
}
|
|
55
|
-
const id = normalizeIdentifier(self.sliceSerialize({
|
|
56
|
-
start: labelStart.end,
|
|
57
|
-
end: self.now()
|
|
58
|
-
}));
|
|
59
|
-
if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) {
|
|
60
|
-
return nok(code);
|
|
61
|
-
}
|
|
62
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
63
|
-
effects.consume(code);
|
|
64
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
65
|
-
return ok(code);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function resolveToPotentialGfmFootnoteCall(events, context) {
|
|
69
|
-
let index = events.length;
|
|
70
|
-
while (index--) {
|
|
71
|
-
if (events[index][1].type === "labelImage" && events[index][0] === "enter") {
|
|
72
|
-
events[index][1];
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
events[index + 1][1].type = "data";
|
|
77
|
-
events[index + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
78
|
-
const call = {
|
|
79
|
-
type: "gfmFootnoteCall",
|
|
80
|
-
start: Object.assign({}, events[index + 3][1].start),
|
|
81
|
-
end: Object.assign({}, events[events.length - 1][1].end)
|
|
82
|
-
};
|
|
83
|
-
const marker = {
|
|
84
|
-
type: "gfmFootnoteCallMarker",
|
|
85
|
-
start: Object.assign({}, events[index + 3][1].end),
|
|
86
|
-
end: Object.assign({}, events[index + 3][1].end)
|
|
87
|
-
};
|
|
88
|
-
marker.end.column++;
|
|
89
|
-
marker.end.offset++;
|
|
90
|
-
marker.end._bufferIndex++;
|
|
91
|
-
const string = {
|
|
92
|
-
type: "gfmFootnoteCallString",
|
|
93
|
-
start: Object.assign({}, marker.end),
|
|
94
|
-
end: Object.assign({}, events[events.length - 1][1].start)
|
|
95
|
-
};
|
|
96
|
-
const chunk = {
|
|
97
|
-
type: "chunkString",
|
|
98
|
-
contentType: "string",
|
|
99
|
-
start: Object.assign({}, string.start),
|
|
100
|
-
end: Object.assign({}, string.end)
|
|
101
|
-
};
|
|
102
|
-
const replacement = [
|
|
103
|
-
// Take the `labelImageMarker` (now `data`, the `!`)
|
|
104
|
-
events[index + 1],
|
|
105
|
-
events[index + 2],
|
|
106
|
-
["enter", call, context],
|
|
107
|
-
// The `[`
|
|
108
|
-
events[index + 3],
|
|
109
|
-
events[index + 4],
|
|
110
|
-
// The `^`.
|
|
111
|
-
["enter", marker, context],
|
|
112
|
-
["exit", marker, context],
|
|
113
|
-
// Everything in between.
|
|
114
|
-
["enter", string, context],
|
|
115
|
-
["enter", chunk, context],
|
|
116
|
-
["exit", chunk, context],
|
|
117
|
-
["exit", string, context],
|
|
118
|
-
// The ending (`]`, properly parsed and labelled).
|
|
119
|
-
events[events.length - 2],
|
|
120
|
-
events[events.length - 1],
|
|
121
|
-
["exit", call, context]
|
|
122
|
-
];
|
|
123
|
-
events.splice(index, events.length - index + 1, ...replacement);
|
|
124
|
-
return events;
|
|
125
|
-
}
|
|
126
|
-
function tokenizeGfmFootnoteCall(effects, ok, nok) {
|
|
127
|
-
const self = this;
|
|
128
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
129
|
-
let size = 0;
|
|
130
|
-
let data;
|
|
131
|
-
return start;
|
|
132
|
-
function start(code) {
|
|
133
|
-
effects.enter("gfmFootnoteCall");
|
|
134
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
135
|
-
effects.consume(code);
|
|
136
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
137
|
-
return callStart;
|
|
138
|
-
}
|
|
139
|
-
function callStart(code) {
|
|
140
|
-
if (code !== 94) return nok(code);
|
|
141
|
-
effects.enter("gfmFootnoteCallMarker");
|
|
142
|
-
effects.consume(code);
|
|
143
|
-
effects.exit("gfmFootnoteCallMarker");
|
|
144
|
-
effects.enter("gfmFootnoteCallString");
|
|
145
|
-
effects.enter("chunkString").contentType = "string";
|
|
146
|
-
return callData;
|
|
147
|
-
}
|
|
148
|
-
function callData(code) {
|
|
149
|
-
if (
|
|
150
|
-
// Too long.
|
|
151
|
-
size > 999 || // Closing brace with nothing.
|
|
152
|
-
code === 93 && !data || // Space or tab is not supported by GFM for some reason.
|
|
153
|
-
// `\n` and `[` not being supported makes sense.
|
|
154
|
-
code === null || code === 91 || markdownLineEndingOrSpace(code)
|
|
155
|
-
) {
|
|
156
|
-
return nok(code);
|
|
157
|
-
}
|
|
158
|
-
if (code === 93) {
|
|
159
|
-
effects.exit("chunkString");
|
|
160
|
-
const token = effects.exit("gfmFootnoteCallString");
|
|
161
|
-
if (!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))) {
|
|
162
|
-
return nok(code);
|
|
163
|
-
}
|
|
164
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
165
|
-
effects.consume(code);
|
|
166
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
167
|
-
effects.exit("gfmFootnoteCall");
|
|
168
|
-
return ok;
|
|
169
|
-
}
|
|
170
|
-
if (!markdownLineEndingOrSpace(code)) {
|
|
171
|
-
data = true;
|
|
172
|
-
}
|
|
173
|
-
size++;
|
|
174
|
-
effects.consume(code);
|
|
175
|
-
return code === 92 ? callEscape : callData;
|
|
176
|
-
}
|
|
177
|
-
function callEscape(code) {
|
|
178
|
-
if (code === 91 || code === 92 || code === 93) {
|
|
179
|
-
effects.consume(code);
|
|
180
|
-
size++;
|
|
181
|
-
return callData;
|
|
182
|
-
}
|
|
183
|
-
return callData(code);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function tokenizeDefinitionStart(effects, ok, nok) {
|
|
187
|
-
const self = this;
|
|
188
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
189
|
-
let identifier;
|
|
190
|
-
let size = 0;
|
|
191
|
-
let data;
|
|
192
|
-
return start;
|
|
193
|
-
function start(code) {
|
|
194
|
-
effects.enter("gfmFootnoteDefinition")._container = true;
|
|
195
|
-
effects.enter("gfmFootnoteDefinitionLabel");
|
|
196
|
-
effects.enter("gfmFootnoteDefinitionLabelMarker");
|
|
197
|
-
effects.consume(code);
|
|
198
|
-
effects.exit("gfmFootnoteDefinitionLabelMarker");
|
|
199
|
-
return labelAtMarker;
|
|
200
|
-
}
|
|
201
|
-
function labelAtMarker(code) {
|
|
202
|
-
if (code === 94) {
|
|
203
|
-
effects.enter("gfmFootnoteDefinitionMarker");
|
|
204
|
-
effects.consume(code);
|
|
205
|
-
effects.exit("gfmFootnoteDefinitionMarker");
|
|
206
|
-
effects.enter("gfmFootnoteDefinitionLabelString");
|
|
207
|
-
effects.enter("chunkString").contentType = "string";
|
|
208
|
-
return labelInside;
|
|
209
|
-
}
|
|
210
|
-
return nok(code);
|
|
211
|
-
}
|
|
212
|
-
function labelInside(code) {
|
|
213
|
-
if (
|
|
214
|
-
// Too long.
|
|
215
|
-
size > 999 || // Closing brace with nothing.
|
|
216
|
-
code === 93 && !data || // Space or tab is not supported by GFM for some reason.
|
|
217
|
-
// `\n` and `[` not being supported makes sense.
|
|
218
|
-
code === null || code === 91 || markdownLineEndingOrSpace(code)
|
|
219
|
-
) {
|
|
220
|
-
return nok(code);
|
|
221
|
-
}
|
|
222
|
-
if (code === 93) {
|
|
223
|
-
effects.exit("chunkString");
|
|
224
|
-
const token = effects.exit("gfmFootnoteDefinitionLabelString");
|
|
225
|
-
identifier = normalizeIdentifier(self.sliceSerialize(token));
|
|
226
|
-
effects.enter("gfmFootnoteDefinitionLabelMarker");
|
|
227
|
-
effects.consume(code);
|
|
228
|
-
effects.exit("gfmFootnoteDefinitionLabelMarker");
|
|
229
|
-
effects.exit("gfmFootnoteDefinitionLabel");
|
|
230
|
-
return labelAfter;
|
|
231
|
-
}
|
|
232
|
-
if (!markdownLineEndingOrSpace(code)) {
|
|
233
|
-
data = true;
|
|
234
|
-
}
|
|
235
|
-
size++;
|
|
236
|
-
effects.consume(code);
|
|
237
|
-
return code === 92 ? labelEscape : labelInside;
|
|
238
|
-
}
|
|
239
|
-
function labelEscape(code) {
|
|
240
|
-
if (code === 91 || code === 92 || code === 93) {
|
|
241
|
-
effects.consume(code);
|
|
242
|
-
size++;
|
|
243
|
-
return labelInside;
|
|
244
|
-
}
|
|
245
|
-
return labelInside(code);
|
|
246
|
-
}
|
|
247
|
-
function labelAfter(code) {
|
|
248
|
-
if (code === 58) {
|
|
249
|
-
effects.enter("definitionMarker");
|
|
250
|
-
effects.consume(code);
|
|
251
|
-
effects.exit("definitionMarker");
|
|
252
|
-
if (!defined.includes(identifier)) {
|
|
253
|
-
defined.push(identifier);
|
|
254
|
-
}
|
|
255
|
-
return factorySpace(effects, whitespaceAfter, "gfmFootnoteDefinitionWhitespace");
|
|
256
|
-
}
|
|
257
|
-
return nok(code);
|
|
258
|
-
}
|
|
259
|
-
function whitespaceAfter(code) {
|
|
260
|
-
return ok(code);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function tokenizeDefinitionContinuation(effects, ok, nok) {
|
|
264
|
-
return effects.check(blankLine, ok, effects.attempt(indent, ok, nok));
|
|
265
|
-
}
|
|
266
|
-
function gfmFootnoteDefinitionEnd(effects) {
|
|
267
|
-
effects.exit("gfmFootnoteDefinition");
|
|
268
|
-
}
|
|
269
|
-
function tokenizeIndent(effects, ok, nok) {
|
|
270
|
-
const self = this;
|
|
271
|
-
return factorySpace(effects, afterPrefix, "gfmFootnoteDefinitionIndent", 4 + 1);
|
|
272
|
-
function afterPrefix(code) {
|
|
273
|
-
const tail = self.events[self.events.length - 1];
|
|
274
|
-
return tail && tail[1].type === "gfmFootnoteDefinitionIndent" && tail[2].sliceSerialize(tail[1], true).length === 4 ? ok(code) : nok(code);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
export {
|
|
278
|
-
gfmFootnote as g
|
|
279
|
-
};
|