@ai-matrx/content-ir 0.20.1 → 0.21.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/dist/source.js CHANGED
@@ -2875,6 +2875,424 @@ function resolveReferenceLinks(fragment, defs) {
2875
2875
  return resolved.replace(new RegExp(`${PLACEHOLDER}(\\d+)${PLACEHOLDER}`, "g"), (_m, i) => spans[Number(i)] ?? "");
2876
2876
  }
2877
2877
 
2878
- export { AFTER_WINDOW, BacktickRuns, CALLOUT_NAMES, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceReader, NESTING_FENCE_LANGUAGES, SourceSpliceError, XmlContainerTracker, blockAt, blockEdit, blockRangeEdit, buildCodePointIndex, classifyInnerFenceLine, closeFence, codeSpanText, collectLinkDefinitions, continuesTable, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, findCodeRanges, findInlineCodeSpans, findLinkDefinitionLines, findTableEnd, findTableStart, isEscapedBracketMath, isGfmDelimiterRow, isHtmlBlockTagName, isMathPlaceholder, isPipeLedRow, isSingleDollarMath, islandEdit, joinSource, lineIndent, listIslands, looksLikeDisplayMath, looksLikeOpenInlineMath, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, normalizeLinkLabel, opensStrippedHtmlBlock, opensTable, pairDisplayMath, parseFenceOpener, pendingCodeSpanStart, pendingDisplayMathOpener, readXmlTag, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, unescapeCellPipes };
2878
+ // source/code-range-edits.ts
2879
+ function unwrapCodeSpans(text) {
2880
+ if (!text.includes("`")) return text;
2881
+ return mapCodeRanges(text, (range, raw) => range.kind === "span" ? codeSpanText(raw) : raw);
2882
+ }
2883
+ function removeCodeSpans(text) {
2884
+ if (!text.includes("`")) return text;
2885
+ return mapCodeRanges(text, (range, raw) => range.kind === "span" ? "" : raw);
2886
+ }
2887
+ function replaceFences(text, fn) {
2888
+ if (!text.includes("```") && !text.includes("~~~")) return text;
2889
+ return mapCodeRanges(text, (range, raw) => {
2890
+ if (range.kind !== "fence") return raw;
2891
+ const parts = fenceParts(raw);
2892
+ return fn({ lang: parts?.opener.lang ?? "", body: parts?.body ?? raw, closed: parts?.closed ?? false, raw });
2893
+ });
2894
+ }
2895
+ function soleFence(text, options = {}) {
2896
+ const trimmed = text.trim();
2897
+ if (!trimmed.startsWith("`") && !trimmed.startsWith("~")) return null;
2898
+ const ranges = findCodeRanges(trimmed);
2899
+ const only = ranges.length === 1 ? ranges[0] : void 0;
2900
+ if (!only || only.kind !== "fence" || only.start !== 0 || only.end !== trimmed.length) return null;
2901
+ const parts = fenceParts(trimmed);
2902
+ if (!parts || !parts.closed && !options.allowUnclosed) return null;
2903
+ return { lang: parts.opener.lang, body: parts.body, closed: parts.closed };
2904
+ }
2905
+
2906
+ // source/plain-text.ts
2907
+ var INLINE_PATTERNS = [
2908
+ // [label](href) → label. Runs first so emphasis inside a label still unwraps.
2909
+ [/\[([^\]]+)\]\([^)]*\)/g, "$1"],
2910
+ [/\*\*\*(?=\S)([\s\S]*?\S)\*\*\*/g, "$1"],
2911
+ [/___(?=\S)([\s\S]*?\S)___/g, "$1"],
2912
+ [/\*\*(?=\S)([\s\S]*?\S)\*\*/g, "$1"],
2913
+ [/__(?=\S)([\s\S]*?\S)__/g, "$1"],
2914
+ [/~~(?=\S)([\s\S]*?\S)~~/g, "$1"],
2915
+ [/\*(?=\S)([^*\n]*?\S)\*/g, "$1"],
2916
+ // Underscore italics only between word boundaries: snake_case_names are not
2917
+ // emphasis, and mangling an identifier is a worse defect than a stray marker.
2918
+ [/(^|[\s(])_(?=\S)([^_\n]*?\S)_(?=[\s).,;:!?]|$)/g, "$1$2"]
2919
+ ];
2920
+ var MATH_STRUCTURAL = [
2921
+ [/\\(?:d|t)?frac\s*\{([^{}]*)\}\s*\{([^{}]*)\}/g, "$1/$2"],
2922
+ [/\\sqrt\s*\{([^{}]*)\}/g, "\u221A($1)"]
2923
+ ];
2924
+ var MATH_PATTERNS = [
2925
+ // Environments (\begin{aligned} … \end{aligned}) carry no meaning in a
2926
+ // one-line preview; drop the wrapper, keep the contents. Without this the
2927
+ // catch-all below turned them into the word "aligned" twice.
2928
+ [/\\(?:begin|end)\s*\{[^{}]*\}/g, " "],
2929
+ // A TeX line break inside a preview is just a space.
2930
+ [/\\\\/g, " "],
2931
+ // TeX spacing commands (\, \; \: thin/medium space, \! negative space).
2932
+ [/\\[,;:]/g, " "],
2933
+ [/\\!/g, ""],
2934
+ // \left\{ … \right\} — the escaped-brace forms, which the character-class
2935
+ // rule below cannot reach because the brace is preceded by a backslash.
2936
+ [/\\(?:left|right)\s*\\?([([\]|){}])/g, "$1"],
2937
+ // NOTE: every command below ends with (?![a-zA-Z]) and NOT \b. `_` is a WORD
2938
+ // character, so \b fails after `\sum_` — which silently left every
2939
+ // summation, integral and limit card reading as "sum_" / "int_".
2940
+ [/\\times(?![a-zA-Z])/g, "\xD7"],
2941
+ [/\\div(?![a-zA-Z])/g, "\xF7"],
2942
+ [/\\pm(?![a-zA-Z])/g, "\xB1"],
2943
+ [/\\cdot(?![a-zA-Z])/g, "\xB7"],
2944
+ [/\\leq(?![a-zA-Z])/g, "\u2264"],
2945
+ [/\\geq(?![a-zA-Z])/g, "\u2265"],
2946
+ [/\\neq(?![a-zA-Z])/g, "\u2260"],
2947
+ [/\\approx(?![a-zA-Z])/g, "\u2248"],
2948
+ [/\\infty(?![a-zA-Z])/g, "\u221E"],
2949
+ [/\\pi(?![a-zA-Z])/g, "\u03C0"],
2950
+ [/\\theta(?![a-zA-Z])/g, "\u03B8"],
2951
+ [/\\alpha(?![a-zA-Z])/g, "\u03B1"],
2952
+ [/\\beta(?![a-zA-Z])/g, "\u03B2"],
2953
+ [/\\Delta(?![a-zA-Z])/g, "\u0394"],
2954
+ [/\\delta(?![a-zA-Z])/g, "\u03B4"],
2955
+ [/\\sum(?![a-zA-Z])/g, "\u03A3"],
2956
+ [/\\prod(?![a-zA-Z])/g, "\u220F"],
2957
+ [/\\int(?![a-zA-Z])/g, "\u222B"],
2958
+ [/\\lim(?![a-zA-Z])/g, "lim"],
2959
+ [/\\(?:rightarrow|to)(?![a-zA-Z])/g, "\u2192"],
2960
+ // Braces that only ever grouped a script or argument: ^{2} → ^2, _{i} → _i.
2961
+ [/([_^])\s*\{([^{}]*)\}/g, "$1$2"],
2962
+ // Any remaining single-argument command: \text{x} / \mathrm{x} → x.
2963
+ [/\\[a-zA-Z]+\s*\{([^{}]*)\}/g, "$1"],
2964
+ // Bare commands we did not translate: drop the backslash, keep the word.
2965
+ [/\\([a-zA-Z]+)/g, "$1"]
2966
+ ];
2967
+ var MATH_REGIONS = [
2968
+ /\\\[([\s\S]*?)\\\]/g,
2969
+ /\\\(([\s\S]*?)\\\)/g,
2970
+ /\$\$([\s\S]*?)\$\$/g
2971
+ ];
2972
+ function mathToReadable(expression) {
2973
+ let text = expression;
2974
+ for (let pass = 0; pass < 8; pass += 1) {
2975
+ const before = text;
2976
+ for (const [pattern, replacement] of MATH_STRUCTURAL) {
2977
+ text = text.replace(pattern, replacement);
2978
+ }
2979
+ if (text === before) break;
2980
+ }
2981
+ for (const [pattern, replacement] of MATH_PATTERNS) {
2982
+ text = text.replace(pattern, replacement);
2983
+ }
2984
+ return text.trim();
2985
+ }
2986
+ function markdownToPlainText(value) {
2987
+ if (!value) return "";
2988
+ const mathChunks = [];
2989
+ let text = value;
2990
+ for (const region of MATH_REGIONS) {
2991
+ text = text.replace(region, (_match, inner) => {
2992
+ mathChunks.push(mathToReadable(inner));
2993
+ return `\uE000MATH${mathChunks.length - 1}\uE001`;
2994
+ });
2995
+ }
2996
+ for (const [pattern, replacement] of INLINE_PATTERNS) {
2997
+ text = text.replace(pattern, replacement);
2998
+ }
2999
+ text = unwrapCodeSpans(text);
3000
+ text = text.replace(
3001
+ /\uE000MATH(\d+)\uE001/g,
3002
+ (_m, index) => mathChunks[Number(index)] ?? ""
3003
+ );
3004
+ return text.replace(/[ \t]{2,}/g, " ").trim();
3005
+ }
3006
+ function unwrapKindEnvelopes(value) {
3007
+ if (!value) return "";
3008
+ if (!value.includes("<artifact")) return value;
3009
+ return tokenizeSource(value).map((block) => {
3010
+ if (block.kind !== "island" || block.islandType !== "xml_attr" && block.islandType !== "xml_container") {
3011
+ return block.raw;
3012
+ }
3013
+ const match = /^\s*<artifact\b[^>]*>([\s\S]*?)<\/artifact>\s*$/.exec(block.raw);
3014
+ return match ? (match[1] ?? "").replace(/^\n/, "").replace(/\n$/, "") : block.raw;
3015
+ }).join("");
3016
+ }
3017
+
3018
+ // source/clean-markdown.ts
3019
+ var cleanMarkdown = (text) => {
3020
+ if (!text || typeof text !== "string") return "";
3021
+ let cleanedText = text;
3022
+ const lines = cleanedText.split("\n");
3023
+ const processedLines = [];
3024
+ for (let line of lines) {
3025
+ let processedLine = line;
3026
+ if (processedLine.trim() === "") {
3027
+ processedLines.push(processedLine);
3028
+ continue;
3029
+ }
3030
+ processedLine = processedLine.replace(/^#{1,6}\s+(.+)$/, "$1");
3031
+ processedLine = processedLine.replace(/(\*\*|__)(.*?)\1/, "$2");
3032
+ processedLine = processedLine.replace(/(\*|_)(.*?)\1/, "$2");
3033
+ processedLine = unwrapCodeSpans(processedLine);
3034
+ processedLine = processedLine.replace(/\[([^\]]+)\]\(([^)]+)\)/, "$1");
3035
+ processedLine = processedLine.replace(/!\[([^\]]*)\]\(([^)]+)\)/, "$1");
3036
+ processedLine = processedLine.replace(/^>\s*(.+)$/, "$1");
3037
+ processedLine = processedLine.replace(/^(\*{3,}|-{3,}|_{3,})$/, "");
3038
+ processedLine = processedLine.replace(/^(\s*[-+*]\s+|\s*\d+\.\s+)(.+)$/, "$2");
3039
+ processedLine = processedLine.replace(/<\/?[^>]+(>|$)/g, "");
3040
+ processedLines.push(processedLine);
3041
+ }
3042
+ cleanedText = processedLines.join("\n");
3043
+ cleanedText = replaceFences(cleanedText, ({ body }) => body);
3044
+ return cleanedText;
3045
+ };
3046
+
3047
+ // source/fence-meta.ts
3048
+ var FENCE_META_KEY = "fenceMeta";
3049
+ function splitFenceInfo(info) {
3050
+ const trimmed = info.trim();
3051
+ if (!trimmed) return {};
3052
+ const firstSpace = trimmed.search(/\s/);
3053
+ let token = firstSpace === -1 ? trimmed : trimmed.slice(0, firstSpace);
3054
+ let rest = firstSpace === -1 ? "" : trimmed.slice(firstSpace).trim();
3055
+ const braceAt = token.indexOf("{");
3056
+ if (braceAt > 0) {
3057
+ rest = `${token.slice(braceAt)} ${rest}`.trim();
3058
+ token = token.slice(0, braceAt);
3059
+ }
3060
+ const colonAt = token.indexOf(":");
3061
+ if (colonAt > 0 && colonAt < token.length - 1) {
3062
+ const filename = token.slice(colonAt + 1);
3063
+ rest = `title="${filename}" ${rest}`.trim();
3064
+ token = token.slice(0, colonAt);
3065
+ }
3066
+ if (token.startsWith("{")) {
3067
+ rest = `${token} ${rest}`.trim();
3068
+ token = "";
3069
+ }
3070
+ const out = {};
3071
+ if (token) out.language = token;
3072
+ if (rest) out.meta = rest;
3073
+ return out;
3074
+ }
3075
+ var TITLE_RE = /(?:^|\s)(?:title|filename|file)=(?:"([^"]*)"|'([^']*)'|(\S+))/i;
3076
+ var RANGES_RE = /(?:^|\s)\{([\d\s,-]+)\}/;
3077
+ var LINE_NUMBERS_RE = /(?:^|\s)showLineNumbers(?:\{(\d+)\})?(?=\s|$)/;
3078
+ var MAX_HIGHLIGHT_LINES = 1e4;
3079
+ function parseFenceMeta(meta) {
3080
+ const result = { highlightLines: [] };
3081
+ if (!meta) return result;
3082
+ const title = TITLE_RE.exec(meta);
3083
+ if (title) {
3084
+ const value = (title[1] ?? title[2] ?? title[3] ?? "").trim();
3085
+ if (value) result.title = value;
3086
+ }
3087
+ const ranges = RANGES_RE.exec(meta);
3088
+ if (ranges) result.highlightLines = parseLineRanges(ranges[1] ?? "");
3089
+ const lineNumbers = LINE_NUMBERS_RE.exec(meta);
3090
+ if (lineNumbers) {
3091
+ result.showLineNumbers = true;
3092
+ if (lineNumbers[1]) {
3093
+ const start = Number.parseInt(lineNumbers[1], 10);
3094
+ if (Number.isFinite(start) && start > 0) result.startLine = start;
3095
+ }
3096
+ }
3097
+ return result;
3098
+ }
3099
+ function parseLineRanges(spec) {
3100
+ const lines = /* @__PURE__ */ new Set();
3101
+ for (const part of spec.split(",")) {
3102
+ const piece = part.trim();
3103
+ if (!piece) continue;
3104
+ const range = /^(\d+)\s*-\s*(\d+)$/.exec(piece);
3105
+ if (range) {
3106
+ const from = Number.parseInt(range[1] ?? "", 10);
3107
+ const to = Number.parseInt(range[2] ?? "", 10);
3108
+ if (from < 1 || to < from) continue;
3109
+ for (let n = from; n <= to && lines.size < MAX_HIGHLIGHT_LINES; n += 1) {
3110
+ lines.add(n);
3111
+ }
3112
+ continue;
3113
+ }
3114
+ if (/^\d+$/.test(piece)) {
3115
+ const n = Number.parseInt(piece, 10);
3116
+ if (n >= 1) lines.add(n);
3117
+ }
3118
+ }
3119
+ return [...lines].sort((a, b) => a - b);
3120
+ }
3121
+
3122
+ // source/directive-container.ts
3123
+ var DIRECTIVE_CONTAINER_OPEN = /^[ \t]{0,3}(:{3,})[A-Za-z][\w-]*/;
3124
+ var CLOSE = /^[ \t]{0,3}(:{3,})[ \t]*$/;
3125
+ var DirectiveContainerTracker = class {
3126
+ stack;
3127
+ fence = null;
3128
+ constructor(openingLine) {
3129
+ const m = DIRECTIVE_CONTAINER_OPEN.exec(openingLine);
3130
+ this.stack = [m ? m[1].length : 3];
3131
+ }
3132
+ /** Feed the next line (after the opener). True once the outermost container has closed on this line. */
3133
+ consume(line) {
3134
+ if (this.fence) {
3135
+ if (this.fence.feed(line)) this.fence = null;
3136
+ return false;
3137
+ }
3138
+ const opener = fenceOpenerOf(line);
3139
+ if (opener) {
3140
+ this.fence = new FenceReader(opener);
3141
+ return false;
3142
+ }
3143
+ const open = DIRECTIVE_CONTAINER_OPEN.exec(line);
3144
+ if (open) {
3145
+ this.stack.push(open[1].length);
3146
+ return false;
3147
+ }
3148
+ const close = CLOSE.exec(line);
3149
+ if (close && close[1].length >= (this.stack[this.stack.length - 1] ?? 3)) {
3150
+ this.stack.pop();
3151
+ return this.stack.length === 0;
3152
+ }
3153
+ return false;
3154
+ }
3155
+ };
3156
+
3157
+ // source/image-figure.ts
3158
+ var TITLED_IMAGE_LINE = /^[ \t]{0,3}!\[[^\]\n]*\]\(\s*<?[^\s)>]+>?\s+(?:"[^"\n]+"|'[^'\n]+')\s*\)[ \t]*$/;
3159
+
3160
+ // source/inline-code-span.ts
3161
+ function isInsideInlineCode(line, at) {
3162
+ let i = 0;
3163
+ while (i <= at && i < line.length) {
3164
+ if (line[i] === "\\") {
3165
+ i += 2;
3166
+ continue;
3167
+ }
3168
+ if (line[i] !== "`") {
3169
+ i += 1;
3170
+ continue;
3171
+ }
3172
+ let run = 0;
3173
+ while (line[i + run] === "`") run += 1;
3174
+ let close = -1;
3175
+ for (let j = i + run; j < line.length; ) {
3176
+ if (line[j] !== "`") {
3177
+ j += 1;
3178
+ continue;
3179
+ }
3180
+ let r = 0;
3181
+ while (line[j + r] === "`") r += 1;
3182
+ if (r === run) {
3183
+ close = j;
3184
+ break;
3185
+ }
3186
+ j += r;
3187
+ }
3188
+ if (close === -1) {
3189
+ i += run;
3190
+ continue;
3191
+ }
3192
+ if (at > i && at < close + run) return true;
3193
+ i = close + run;
3194
+ }
3195
+ return false;
3196
+ }
3197
+ function indexOutsideInlineCode(line, needle, from = 0) {
3198
+ for (let idx = line.indexOf(needle, from); idx !== -1; idx = line.indexOf(needle, idx + 1)) {
3199
+ if (!isInsideInlineCode(line, idx)) return idx;
3200
+ }
3201
+ return -1;
3202
+ }
3203
+ function hasUnclosedBacktickRun(text) {
3204
+ let i = 0;
3205
+ while (i < text.length) {
3206
+ if (text[i] === "\\") {
3207
+ i += 2;
3208
+ continue;
3209
+ }
3210
+ if (text[i] !== "`") {
3211
+ i += 1;
3212
+ continue;
3213
+ }
3214
+ let run = 0;
3215
+ while (text[i + run] === "`") run += 1;
3216
+ let close = -1;
3217
+ for (let j = i + run; j < text.length; ) {
3218
+ if (text[j] !== "`") {
3219
+ j += 1;
3220
+ continue;
3221
+ }
3222
+ let r = 0;
3223
+ while (text[j + r] === "`") r += 1;
3224
+ if (r === run) {
3225
+ close = j;
3226
+ break;
3227
+ }
3228
+ j += r;
3229
+ }
3230
+ if (close === -1) return true;
3231
+ i = close + run;
3232
+ }
3233
+ return false;
3234
+ }
3235
+
3236
+ // source/xml-tag-balance.ts
3237
+ function initialXmlBalance() {
3238
+ return { depth: 1, fence: null };
3239
+ }
3240
+ function escapeRegExp(value) {
3241
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3242
+ }
3243
+ function findBalancedXmlClose(line, tagName, state, { trackFences = true, nest = true } = {}) {
3244
+ if (state.fence) {
3245
+ if (state.fence.feed(line)) state.fence = null;
3246
+ return -1;
3247
+ }
3248
+ const opener = trackFences ? fenceOpenerOf(line) : null;
3249
+ if (opener) {
3250
+ state.fence = new FenceReader(opener);
3251
+ return -1;
3252
+ }
3253
+ const tag = new RegExp(
3254
+ `<(\\/?)${escapeRegExp(tagName)}(?=[\\s>/])[^<>]*?(\\/?)>`,
3255
+ "g"
3256
+ );
3257
+ for (const match of line.matchAll(tag)) {
3258
+ const closing = match[1] === "/";
3259
+ const selfClosing = match[2] === "/";
3260
+ if (closing) {
3261
+ state.depth -= 1;
3262
+ if (state.depth === 0) return match.index ?? -1;
3263
+ } else if (nest && !selfClosing && line.slice(0, match.index).trim() === "") {
3264
+ state.depth += 1;
3265
+ }
3266
+ }
3267
+ return -1;
3268
+ }
3269
+
3270
+ // source/gfm-table-lines.ts
3271
+ function findWholeTableStart(lines, from = 0) {
3272
+ for (let i = Math.max(0, from); i + 1 < lines.length; i += 1) if (tableStartsAt(lines, i)) return i;
3273
+ return -1;
3274
+ }
3275
+ function startsLikeTableRow(line) {
3276
+ return /^\s*\|/.test(line);
3277
+ }
3278
+ function isGrowingDelimiterRow(line) {
3279
+ return /^[\s|:-]*-[\s|:-]*$/.test(line);
3280
+ }
3281
+ function trailingTableStart(lines, end = lines.length) {
3282
+ const isTableLine = (line) => startsLikeTableRow(line) || continuesTable(line.trimStart());
3283
+ let start = end;
3284
+ while (start > 0 && isTableLine(lines[start - 1] ?? "")) start -= 1;
3285
+ if (start === end && end > 1 && isGrowingDelimiterRow(lines[end - 1] ?? "") && continuesTable((lines[end - 2] ?? "").trimStart())) {
3286
+ start = end - 1;
3287
+ while (start > 0 && isTableLine(lines[start - 1] ?? "")) start -= 1;
3288
+ }
3289
+ for (let head = start; head < end; head += 1) {
3290
+ if (startsLikeTableRow(lines[head] ?? "")) return head;
3291
+ if (end - head > 1 && isGrowingDelimiterRow(lines[head + 1] ?? "")) return head;
3292
+ }
3293
+ return end;
3294
+ }
3295
+
3296
+ export { AFTER_WINDOW, BacktickRuns, CALLOUT_NAMES, DIRECTIVE_CONTAINER_OPEN, DirectiveContainerTracker, FENCE_META_KEY, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceReader, NESTING_FENCE_LANGUAGES, SourceSpliceError, TITLED_IMAGE_LINE, XmlContainerTracker, blockAt, blockEdit, blockRangeEdit, buildCodePointIndex, classifyInnerFenceLine, cleanMarkdown, closeFence, codeSpanText, collectLinkDefinitions, continuesTable, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, findBalancedXmlClose, findCodeRanges, findInlineCodeSpans, findLinkDefinitionLines, findTableEnd, findTableStart, findWholeTableStart, hasUnclosedBacktickRun, indexOutsideInlineCode, initialXmlBalance, isEscapedBracketMath, isGfmDelimiterRow, isGrowingDelimiterRow, isHtmlBlockTagName, isInsideInlineCode, isMathPlaceholder, isPipeLedRow, isSingleDollarMath, islandEdit, joinSource, lineIndent, listIslands, looksLikeDisplayMath, looksLikeOpenInlineMath, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, markdownToPlainText, mathToReadable, normalizeLinkLabel, opensStrippedHtmlBlock, opensTable, pairDisplayMath, parseFenceMeta, parseFenceOpener, parseLineRanges, pendingCodeSpanStart, pendingDisplayMathOpener, readXmlTag, removeCodeSpans, replaceFences, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, soleFence, spliceSave, splitFenceInfo, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsLikeTableRow, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trailingTableStart, trimFenceLine, unescapeCellPipes, unwrapCodeSpans, unwrapKindEnvelopes };
2879
3297
  //# sourceMappingURL=source.js.map
2880
3298
  //# sourceMappingURL=source.js.map