@ai-matrx/content-ir 0.19.15 → 0.19.18

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/index.d.cts CHANGED
@@ -7,5 +7,5 @@ export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateR
7
7
  export { ArrayItemKindBinding, BlockSchemaDraft, ConversionProblem, DroppedMetadata, FieldComparison, ItemKindRefCheck, JsonSchemaNode, KindJsonSchemaExport, KindJsonSchemaOptions, KindSchemaFromJsonResult, SavePlanEntry, SavePlanValidation, SchemaConversionResult, buildAgentSchemaWithRenderBlockSupport, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, convertAiSchemaToBlockFields, fieldsToDbPayload, injectKindIntoObjectSchema, isDuplicateBlockSlug, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, normalizeAiSchemaInput, runSchemaConversion, validateBlockSchemaSavePlan } from './convert.cjs';
8
8
  export { AnyPartialKindEvent, IR_PARTIAL_KEY, KindVerdict, NODE_OUTCOME_KIND, NodeOutcomeWrapper, PartialKindEvent, PartialKindNode, PartialKindState, RUN_RESULT_KIND, RetractedKindEvent, RunResultWrapper, SupersededKindEvent, advancePartialKind, emitPayloadFence, emitPayloadJson, isProvisionalKind, isTerminalKindEvent, kindVerdictOf, makePartialKindStalenessGate, readNodeOutcomeValue, readOutputRef, readPartialKindEvent, readRunResultValue, rehydrateNodeOutcome, rehydrateRunResult, sanitizeInboundPartialKindMetadata, withRootKind } from './wire.cjs';
9
9
  export { ACTION_BY_CLASS, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DecodedDirective, DirectiveCapability, DirectiveClass, DirectiveDecodeError, DirectiveDisplay, DirectiveItemKindLookup, DirectiveItemsEdge, DirectiveNounCatalog, DirectiveNounEntry, DirectiveSlug, IN_CONTENT_CLASSES, ItemFact, KindDirectiveShell, RESERVED_PREFIX, SIDE_EFFECT_CLASSES, SLUG_PREFIX, asKindInstance, buildDirectiveSlug, buildKindDirective, capabilityOf, decodeDirective, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, executesAtOutputRoot, isDirectiveClass, isKindDirective, isLegacyShell, isReservedDirectiveSlug, itemFacts, itemSubtitle, itemTitle, legacyShellUses, looksLikeDirectiveHead, nounFamily, nounLabel, nounTitleColumn, parseDirectiveSlug, resetLegacyShellUses, resolvesInContent, titleCaseToken, tryDecodeDirective, tryDecodeDirectiveContent } from './directives.cjs';
10
- export { AFTER_WINDOW, BacktickRuns, BlockIslandType, CALLOUT_NAMES, CodePointIndex, CodeRange, DisturbedIsland, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceEnd, FenceLineKind, FenceLines, FenceOpener, FenceReader, InlineIslandType, InnerFenceLine, IslandMeta, IslandType, LinkDefinition, MapOptions, MappedPosition, MappedRange, NESTING_FENCE_LANGUAGES, ReadXmlTag, SourceBlock, SourceBlockKind, SourceChange, SourceEdit, SourceIsland, SourceSpan, SourceSpliceError, SourceSpliceErrorCode, SpliceIntegrity, SpliceOptions, SpliceResult, TokenizeOptions, XmlContainerTracker, blockAt, blockEdit, blockRangeEdit, buildCodePointIndex, classifyInnerFenceLine, closeFence, codeSpanText, collectLinkDefinitions, continuesTable, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, findCodeRanges, findInlineCodeSpans, findTableEnd, findTableStart, isEscapedBracketMath, isGfmDelimiterRow, isHtmlBlockTagName, isMathPlaceholder, isPipeLedRow, isSingleDollarMath, islandEdit, joinSource, lineIndent, listIslands, looksLikeDisplayMath, looksLikeOpenInlineMath, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, normalizeLinkLabel, opensTable, pairDisplayMath, parseFenceOpener, pendingDisplayMathOpener, readXmlTag, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, unescapeCellPipes } from './source.cjs';
10
+ export { AFTER_WINDOW, BacktickRuns, BlockIslandType, CALLOUT_NAMES, CodePointIndex, CodeRange, DisturbedIsland, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceEnd, FenceLineKind, FenceLines, FenceOpener, FenceReader, InlineIslandType, InnerFenceLine, IslandMeta, IslandType, LinkDefinition, MapOptions, MappedPosition, MappedRange, NESTING_FENCE_LANGUAGES, ReadXmlTag, SourceBlock, SourceBlockKind, SourceChange, SourceEdit, SourceIsland, SourceSpan, SourceSpliceError, SourceSpliceErrorCode, SpliceIntegrity, SpliceOptions, SpliceResult, TokenizeOptions, 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, opensTable, pairDisplayMath, parseFenceOpener, pendingDisplayMathOpener, readXmlTag, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, unescapeCellPipes } from './source.cjs';
11
11
  import 'react';
package/dist/index.d.ts CHANGED
@@ -7,5 +7,5 @@ export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateR
7
7
  export { ArrayItemKindBinding, BlockSchemaDraft, ConversionProblem, DroppedMetadata, FieldComparison, ItemKindRefCheck, JsonSchemaNode, KindJsonSchemaExport, KindJsonSchemaOptions, KindSchemaFromJsonResult, SavePlanEntry, SavePlanValidation, SchemaConversionResult, buildAgentSchemaWithRenderBlockSupport, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, convertAiSchemaToBlockFields, fieldsToDbPayload, injectKindIntoObjectSchema, isDuplicateBlockSlug, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, normalizeAiSchemaInput, runSchemaConversion, validateBlockSchemaSavePlan } from './convert.js';
8
8
  export { AnyPartialKindEvent, IR_PARTIAL_KEY, KindVerdict, NODE_OUTCOME_KIND, NodeOutcomeWrapper, PartialKindEvent, PartialKindNode, PartialKindState, RUN_RESULT_KIND, RetractedKindEvent, RunResultWrapper, SupersededKindEvent, advancePartialKind, emitPayloadFence, emitPayloadJson, isProvisionalKind, isTerminalKindEvent, kindVerdictOf, makePartialKindStalenessGate, readNodeOutcomeValue, readOutputRef, readPartialKindEvent, readRunResultValue, rehydrateNodeOutcome, rehydrateRunResult, sanitizeInboundPartialKindMetadata, withRootKind } from './wire.js';
9
9
  export { ACTION_BY_CLASS, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DecodedDirective, DirectiveCapability, DirectiveClass, DirectiveDecodeError, DirectiveDisplay, DirectiveItemKindLookup, DirectiveItemsEdge, DirectiveNounCatalog, DirectiveNounEntry, DirectiveSlug, IN_CONTENT_CLASSES, ItemFact, KindDirectiveShell, RESERVED_PREFIX, SIDE_EFFECT_CLASSES, SLUG_PREFIX, asKindInstance, buildDirectiveSlug, buildKindDirective, capabilityOf, decodeDirective, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, executesAtOutputRoot, isDirectiveClass, isKindDirective, isLegacyShell, isReservedDirectiveSlug, itemFacts, itemSubtitle, itemTitle, legacyShellUses, looksLikeDirectiveHead, nounFamily, nounLabel, nounTitleColumn, parseDirectiveSlug, resetLegacyShellUses, resolvesInContent, titleCaseToken, tryDecodeDirective, tryDecodeDirectiveContent } from './directives.js';
10
- export { AFTER_WINDOW, BacktickRuns, BlockIslandType, CALLOUT_NAMES, CodePointIndex, CodeRange, DisturbedIsland, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceEnd, FenceLineKind, FenceLines, FenceOpener, FenceReader, InlineIslandType, InnerFenceLine, IslandMeta, IslandType, LinkDefinition, MapOptions, MappedPosition, MappedRange, NESTING_FENCE_LANGUAGES, ReadXmlTag, SourceBlock, SourceBlockKind, SourceChange, SourceEdit, SourceIsland, SourceSpan, SourceSpliceError, SourceSpliceErrorCode, SpliceIntegrity, SpliceOptions, SpliceResult, TokenizeOptions, XmlContainerTracker, blockAt, blockEdit, blockRangeEdit, buildCodePointIndex, classifyInnerFenceLine, closeFence, codeSpanText, collectLinkDefinitions, continuesTable, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, findCodeRanges, findInlineCodeSpans, findTableEnd, findTableStart, isEscapedBracketMath, isGfmDelimiterRow, isHtmlBlockTagName, isMathPlaceholder, isPipeLedRow, isSingleDollarMath, islandEdit, joinSource, lineIndent, listIslands, looksLikeDisplayMath, looksLikeOpenInlineMath, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, normalizeLinkLabel, opensTable, pairDisplayMath, parseFenceOpener, pendingDisplayMathOpener, readXmlTag, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, unescapeCellPipes } from './source.js';
10
+ export { AFTER_WINDOW, BacktickRuns, BlockIslandType, CALLOUT_NAMES, CodePointIndex, CodeRange, DisturbedIsland, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceEnd, FenceLineKind, FenceLines, FenceOpener, FenceReader, InlineIslandType, InnerFenceLine, IslandMeta, IslandType, LinkDefinition, MapOptions, MappedPosition, MappedRange, NESTING_FENCE_LANGUAGES, ReadXmlTag, SourceBlock, SourceBlockKind, SourceChange, SourceEdit, SourceIsland, SourceSpan, SourceSpliceError, SourceSpliceErrorCode, SpliceIntegrity, SpliceOptions, SpliceResult, TokenizeOptions, 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, opensTable, pairDisplayMath, parseFenceOpener, pendingDisplayMathOpener, readXmlTag, resolveReferenceLinks, rowCells, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, tableContainerIndent, tableStartsAt, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, unescapeCellPipes } from './source.js';
11
11
  import 'react';
package/dist/index.js CHANGED
@@ -6053,6 +6053,204 @@ var XmlContainerTracker = class {
6053
6053
  }
6054
6054
  };
6055
6055
 
6056
+ // source/gfm-table.ts
6057
+ function splitRowSegments(line) {
6058
+ const segments = [];
6059
+ let start = 0;
6060
+ for (let i = 0; i < line.length; i += 1) {
6061
+ const ch = line[i];
6062
+ if (ch === "\\") {
6063
+ i += 1;
6064
+ continue;
6065
+ }
6066
+ if (ch === "|") {
6067
+ segments.push(line.slice(start, i));
6068
+ start = i + 1;
6069
+ }
6070
+ }
6071
+ segments.push(line.slice(start));
6072
+ return segments;
6073
+ }
6074
+ function rowCells(line) {
6075
+ const cells = splitRowSegments(line).map((cell) => cell.trim());
6076
+ if (cells.length > 1 && cells[0] === "") cells.shift();
6077
+ if (cells.length > 1 && cells[cells.length - 1] === "") cells.pop();
6078
+ else if (cells.length === 1 && cells[0] === "" && !line.includes("|")) cells.pop();
6079
+ return cells;
6080
+ }
6081
+ function unescapeCellPipes(cell) {
6082
+ return cell.replace(/\\\|/g, "|");
6083
+ }
6084
+ var BLOCK_START = /^(?:[-+*](?:\s|$)|\d{1,9}[.)](?:\s|$)|>|#{1,6}(?:\s|$)|(?:-\s*){3,}$|(?:\*\s*){3,}$|(?:_\s*){3,}$|\[\^[^\]\s]+\]:)/;
6085
+ var startsBlock = (trimmed) => BLOCK_START.test(trimmed) || opensStrictFence(trimmed) || startsHtmlBlock(trimmed);
6086
+ var HTML_RAW = /^<(?:script|pre|style|textarea)(?:[\s>]|$)/i;
6087
+ var HTML_COMMENT_ETC = /^(?:<!--|<\?|<![A-Za-z]|<!\[CDATA\[)/;
6088
+ var HTML_BLOCK_NAMES = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
6089
+ var HTML_BLOCK_TAG = new RegExp(`^</?(?:${HTML_BLOCK_NAMES})(?:[\\s>]|/>|$)`, "i");
6090
+ var ATTRIBUTE = `\\s+[A-Za-z_:][A-Za-z0-9_.:-]*(?:\\s*=\\s*(?:[^\\s"'=<>\`]+|'[^']*'|"[^"]*"))?`;
6091
+ var HTML_COMPLETE_TAG = new RegExp(`^(?:<[A-Za-z][A-Za-z0-9-]*(?:${ATTRIBUTE})*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*>)\\s*$`);
6092
+ var HTML_BLOCK_NAME_SET = /* @__PURE__ */ new Set([
6093
+ // Condition 1 (raw text) and condition 6 (block) tag names — CommonMark 0.31.
6094
+ "script",
6095
+ "pre",
6096
+ "style",
6097
+ "textarea",
6098
+ ...HTML_BLOCK_NAMES.replace("h[1-6]", "h1|h2|h3|h4|h5|h6").split("|")
6099
+ ]);
6100
+ function isHtmlBlockTagName(name) {
6101
+ return HTML_BLOCK_NAME_SET.has(name.toLowerCase());
6102
+ }
6103
+ function startsHtmlBlock(trimmed) {
6104
+ if (!trimmed.startsWith("<")) return false;
6105
+ return HTML_RAW.test(trimmed) || HTML_COMMENT_ETC.test(trimmed) || HTML_BLOCK_TAG.test(trimmed) || HTML_COMPLETE_TAG.test(trimmed);
6106
+ }
6107
+ function lineIndent(line) {
6108
+ let column = 0;
6109
+ for (const ch of line) {
6110
+ if (ch === " ") column += 1;
6111
+ else if (ch === " ") column += 4 - column % 4;
6112
+ else break;
6113
+ }
6114
+ return column;
6115
+ }
6116
+ var LIST_MARKER = /^([ \t]*)([-+*]|\d{1,9}[.)])([ \t]+|$)/;
6117
+ function markerContentColumn(marker) {
6118
+ const markerEnd = lineIndent(marker[1] ?? "") + (marker[2] ?? "").length;
6119
+ const gap = marker[3] ? lineIndent(" ".repeat(markerEnd) + marker[3]) - markerEnd : 1;
6120
+ return markerEnd + (gap >= 1 && gap <= 4 ? gap : 1);
6121
+ }
6122
+ function tableContainerIndent(lines, start) {
6123
+ return tableContainerIndentOf(lines, start, false);
6124
+ }
6125
+ function tableContainerIndentOf(lines, start, ownItem) {
6126
+ const own = ownItem ? LIST_MARKER.exec(lines[start] ?? "") : null;
6127
+ if (own) return markerContentColumn(own);
6128
+ const header = lineIndent(lines[start] ?? "");
6129
+ if (header === 0) return 0;
6130
+ for (let k = start - 1; k >= 0; k -= 1) {
6131
+ const line = lines[k] ?? "";
6132
+ if (!line.trim()) continue;
6133
+ const indent = lineIndent(line);
6134
+ const marker = LIST_MARKER.exec(line);
6135
+ if (marker && indent < header) {
6136
+ const content = markerContentColumn(marker);
6137
+ if (content <= header) return content;
6138
+ continue;
6139
+ }
6140
+ if (indent === 0) return 0;
6141
+ }
6142
+ return 0;
6143
+ }
6144
+ var DELIMITER_CELL = /^:?-+:?$/;
6145
+ function isGfmDelimiterRow(line) {
6146
+ const trimmed = line.trim();
6147
+ if (!trimmed.includes("|")) return false;
6148
+ const cells = rowCells(trimmed);
6149
+ return cells.length > 0 && cells.every((cell) => DELIMITER_CELL.test(cell));
6150
+ }
6151
+ function isPipeLedRow(line) {
6152
+ const trimmed = line.trim();
6153
+ return trimmed.startsWith("|") && trimmed.includes("|", 1);
6154
+ }
6155
+ function isTableDelimiter(line) {
6156
+ if (line === void 0 || !isGfmDelimiterRow(line)) return false;
6157
+ return !BLOCK_START.test(line.trim());
6158
+ }
6159
+ function startsPipelessTable(header, delimiter) {
6160
+ const head = header.trim();
6161
+ if (!head || isPipeLedRow(head) || !head.startsWith("|") && startsBlock(head)) return false;
6162
+ if (!isTableDelimiter(delimiter)) return false;
6163
+ return rowCells(head).length === rowCells(delimiter.trim()).length;
6164
+ }
6165
+ function continuesTable(line, containerIndent = 0) {
6166
+ const trimmed = line.trim();
6167
+ if (!trimmed) return false;
6168
+ if (lineIndent(line) - containerIndent >= 4) return false;
6169
+ return trimmed.startsWith("|") || !startsBlock(trimmed);
6170
+ }
6171
+ function opensTable(lines, index) {
6172
+ const line = lines[index] ?? "";
6173
+ if (!isPipeLedRow(line) && !startsPipelessTable(line, lines[index + 1])) return false;
6174
+ return !isLazyContinuation(lines, index) && !insideHtmlBlock(lines, index);
6175
+ }
6176
+ var QUOTE_LINE = /^ {0,3}>/;
6177
+ var THEMATIC_BREAK = /^(?:(?:-[ \t]*){3,}|(?:\*[ \t]*){3,}|(?:_[ \t]*){3,})$/;
6178
+ var breaksParagraph = (trimmed) => /^#{1,6}(?:\s|$)/.test(trimmed) || THEMATIC_BREAK.test(trimmed) || opensStrictFence(trimmed) || startsHtmlBlock(trimmed);
6179
+ function htmlBlockEnd(trimmed) {
6180
+ if (HTML_RAW.test(trimmed)) return /<\/(?:script|pre|style|textarea)>/i;
6181
+ if (trimmed.startsWith("<!--")) return /-->/;
6182
+ if (trimmed.startsWith("<?")) return /\?>/;
6183
+ if (trimmed.startsWith("<![CDATA[")) return /\]\]>/;
6184
+ if (/^<![A-Za-z]/.test(trimmed)) return />/;
6185
+ if (HTML_BLOCK_TAG.test(trimmed)) return null;
6186
+ if (HTML_COMPLETE_TAG.test(trimmed)) return null;
6187
+ return void 0;
6188
+ }
6189
+ function insideHtmlBlock(lines, index) {
6190
+ let start = index;
6191
+ while (start > 0 && (lines[start - 1] ?? "").trim()) start -= 1;
6192
+ let open;
6193
+ let paragraph = false;
6194
+ for (let k = start; k < index; k += 1) {
6195
+ const line = lines[k] ?? "";
6196
+ if (open !== void 0) {
6197
+ if (open && open.test(line)) open = void 0;
6198
+ continue;
6199
+ }
6200
+ const trimmed = line.trim();
6201
+ const end = lineIndent(line) < 4 ? htmlBlockEnd(trimmed) : void 0;
6202
+ const type7 = end === null && !HTML_BLOCK_TAG.test(trimmed);
6203
+ const interrupts = end !== void 0 && !(paragraph && type7);
6204
+ if (!interrupts) {
6205
+ paragraph = true;
6206
+ continue;
6207
+ }
6208
+ paragraph = false;
6209
+ open = end && end.test(trimmed.slice(2)) ? void 0 : end;
6210
+ }
6211
+ return open !== void 0;
6212
+ }
6213
+ function isLazyContinuation(lines, index) {
6214
+ const header = lines[index] ?? "";
6215
+ let first = -1;
6216
+ for (let k = index - 1; k >= 0; k -= 1) {
6217
+ const line = lines[k] ?? "";
6218
+ const trimmed = line.trim();
6219
+ if (!trimmed) break;
6220
+ if (breaksParagraph(trimmed)) break;
6221
+ const marker = LIST_MARKER.exec(line);
6222
+ if (marker) {
6223
+ const rest = line.slice(marker[0].length).trim();
6224
+ if (!rest || breaksParagraph(rest)) break;
6225
+ first = k;
6226
+ break;
6227
+ }
6228
+ first = k;
6229
+ if (QUOTE_LINE.test(line)) break;
6230
+ }
6231
+ if (first < 0) return false;
6232
+ const start = lines[first] ?? "";
6233
+ if (QUOTE_LINE.test(start)) return !QUOTE_LINE.test(header);
6234
+ return lineIndent(header) < tableContainerIndentOf(lines, first, true);
6235
+ }
6236
+ function tableStartsAt(lines, index) {
6237
+ const header = lines[index] ?? "";
6238
+ const delimiter = lines[index + 1];
6239
+ if (!opensTable(lines, index) || !isTableDelimiter(delimiter)) return false;
6240
+ if (rowCells(header).length !== rowCells(delimiter).length) return false;
6241
+ return lineIndent(header) - tableContainerIndent(lines, index) < 4;
6242
+ }
6243
+ function findTableStart(lines, from = 0) {
6244
+ for (let i = Math.max(0, from); i < lines.length; i += 1) if (opensTable(lines, i)) return i;
6245
+ return -1;
6246
+ }
6247
+ function findTableEnd(lines, start) {
6248
+ const container = tableContainerIndent(lines, start);
6249
+ let end = Math.min(lines.length, start + 2);
6250
+ while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
6251
+ return end;
6252
+ }
6253
+
6056
6254
  // source/tokenize.ts
6057
6255
  var NOT_WHITESPACE = /\S/;
6058
6256
  var DIRECTIVE_OPEN = /^(:{2,})([A-Za-z][\w-]*)/;
@@ -6894,9 +7092,12 @@ var Tokenizer = class {
6894
7092
  });
6895
7093
  }
6896
7094
  }
7095
+ if (isHtmlBlockTagName(root)) return null;
6897
7096
  return this.island("xml_container", p, this.n, false, { tag: root });
6898
7097
  }
6899
7098
  if (isUnclosedGenericXmlOpening(seg)) {
7099
+ const name = /^\s*<([A-Za-z_][\w.:-]*)/.exec(seg)?.[1] ?? "";
7100
+ if (isHtmlBlockTagName(name)) return null;
6900
7101
  return this.island("xml_container", p, this.n, false, {});
6901
7102
  }
6902
7103
  return null;
@@ -7666,20 +7867,36 @@ function normalizeLinkLabel(label) {
7666
7867
  var DEFINITION = /^ {0,3}\[((?:[^\]\\]|\\.){1,999})\]:[ \t]*(?:<([^<>\n]*)>|(\S+))(?:[ \t]+(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|\(((?:[^()\\]|\\.)*)\)))?[ \t]*$/;
7667
7868
  function collectLinkDefinitions(text) {
7668
7869
  const defs = /* @__PURE__ */ new Map();
7669
- if (!text.includes("]:")) return defs;
7870
+ for (const { label, definition } of scanLinkDefinitions(text)) {
7871
+ const key = normalizeLinkLabel(label);
7872
+ if (key && !defs.has(key)) defs.set(key, definition);
7873
+ }
7874
+ return defs;
7875
+ }
7876
+ function findLinkDefinitionLines(text) {
7877
+ return scanLinkDefinitions(text).map(({ line }) => line);
7878
+ }
7879
+ function scanLinkDefinitions(text) {
7880
+ const found = [];
7881
+ if (!text.includes("]:")) return found;
7670
7882
  const lines = text.split("\n");
7671
7883
  const kinds = fenceLineKinds(text);
7884
+ let previousWasDefinition = false;
7672
7885
  lines.forEach((line, i) => {
7886
+ const wasDefinition = previousWasDefinition;
7887
+ previousWasDefinition = false;
7673
7888
  if (kinds[i] !== "prose") return;
7674
7889
  const m = DEFINITION.exec(line);
7675
7890
  if (!m) return;
7891
+ const above = i > 0 ? lines[i - 1] ?? "" : "";
7892
+ const opensBlock = i === 0 || !above.trim() || wasDefinition || kinds[i - 1] === "close" || /^ {0,3}(?:#{1,6}(?:\s|$)|(?:[-*_][ \t]*){3,}$)/.test(above);
7893
+ if (!opensBlock) return;
7676
7894
  const label = m[1] ?? "";
7677
7895
  if (label.startsWith("^")) return;
7678
- const key = normalizeLinkLabel(label);
7679
- if (!key || defs.has(key)) return;
7680
- defs.set(key, { url: m[2] ?? m[3] ?? "", title: m[4] ?? m[5] ?? m[6] ?? null });
7896
+ previousWasDefinition = true;
7897
+ found.push({ line: i, label, definition: { url: m[2] ?? m[3] ?? "", title: m[4] ?? m[5] ?? m[6] ?? null } });
7681
7898
  });
7682
- return defs;
7899
+ return found;
7683
7900
  }
7684
7901
  var REFERENCE = /(!?)\[((?:[^\]\\]|\\.)*)\](?:\[((?:[^\]\\]|\\.)*)\])?(?![(:[])/g;
7685
7902
  var escapeTitle = (title) => title.replace(/["\\]/g, "\\$&");
@@ -7704,204 +7921,6 @@ function resolveReferenceLinks(fragment, defs) {
7704
7921
  return resolved.replace(new RegExp(`${PLACEHOLDER}(\\d+)${PLACEHOLDER}`, "g"), (_m, i) => spans[Number(i)] ?? "");
7705
7922
  }
7706
7923
 
7707
- // source/gfm-table.ts
7708
- function splitRowSegments(line) {
7709
- const segments = [];
7710
- let start = 0;
7711
- for (let i = 0; i < line.length; i += 1) {
7712
- const ch = line[i];
7713
- if (ch === "\\") {
7714
- i += 1;
7715
- continue;
7716
- }
7717
- if (ch === "|") {
7718
- segments.push(line.slice(start, i));
7719
- start = i + 1;
7720
- }
7721
- }
7722
- segments.push(line.slice(start));
7723
- return segments;
7724
- }
7725
- function rowCells(line) {
7726
- const cells = splitRowSegments(line).map((cell) => cell.trim());
7727
- if (cells.length > 1 && cells[0] === "") cells.shift();
7728
- if (cells.length > 1 && cells[cells.length - 1] === "") cells.pop();
7729
- else if (cells.length === 1 && cells[0] === "" && !line.includes("|")) cells.pop();
7730
- return cells;
7731
- }
7732
- function unescapeCellPipes(cell) {
7733
- return cell.replace(/\\\|/g, "|");
7734
- }
7735
- var BLOCK_START = /^(?:[-+*](?:\s|$)|\d{1,9}[.)](?:\s|$)|>|#{1,6}(?:\s|$)|(?:-\s*){3,}$|(?:\*\s*){3,}$|(?:_\s*){3,}$|\[\^[^\]\s]+\]:)/;
7736
- var startsBlock = (trimmed) => BLOCK_START.test(trimmed) || opensStrictFence(trimmed) || startsHtmlBlock(trimmed);
7737
- var HTML_RAW = /^<(?:script|pre|style|textarea)(?:[\s>]|$)/i;
7738
- var HTML_COMMENT_ETC = /^(?:<!--|<\?|<![A-Za-z]|<!\[CDATA\[)/;
7739
- var HTML_BLOCK_NAMES = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
7740
- var HTML_BLOCK_TAG = new RegExp(`^</?(?:${HTML_BLOCK_NAMES})(?:[\\s>]|/>|$)`, "i");
7741
- var ATTRIBUTE = `\\s+[A-Za-z_:][A-Za-z0-9_.:-]*(?:\\s*=\\s*(?:[^\\s"'=<>\`]+|'[^']*'|"[^"]*"))?`;
7742
- var HTML_COMPLETE_TAG = new RegExp(`^(?:<[A-Za-z][A-Za-z0-9-]*(?:${ATTRIBUTE})*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*>)\\s*$`);
7743
- var HTML_BLOCK_NAME_SET = /* @__PURE__ */ new Set([
7744
- // Condition 1 (raw text) and condition 6 (block) tag names — CommonMark 0.31.
7745
- "script",
7746
- "pre",
7747
- "style",
7748
- "textarea",
7749
- ...HTML_BLOCK_NAMES.replace("h[1-6]", "h1|h2|h3|h4|h5|h6").split("|")
7750
- ]);
7751
- function isHtmlBlockTagName(name) {
7752
- return HTML_BLOCK_NAME_SET.has(name.toLowerCase());
7753
- }
7754
- function startsHtmlBlock(trimmed) {
7755
- if (!trimmed.startsWith("<")) return false;
7756
- return HTML_RAW.test(trimmed) || HTML_COMMENT_ETC.test(trimmed) || HTML_BLOCK_TAG.test(trimmed) || HTML_COMPLETE_TAG.test(trimmed);
7757
- }
7758
- function lineIndent(line) {
7759
- let column = 0;
7760
- for (const ch of line) {
7761
- if (ch === " ") column += 1;
7762
- else if (ch === " ") column += 4 - column % 4;
7763
- else break;
7764
- }
7765
- return column;
7766
- }
7767
- var LIST_MARKER = /^([ \t]*)([-+*]|\d{1,9}[.)])([ \t]+|$)/;
7768
- function markerContentColumn(marker) {
7769
- const markerEnd = lineIndent(marker[1] ?? "") + (marker[2] ?? "").length;
7770
- const gap = marker[3] ? lineIndent(" ".repeat(markerEnd) + marker[3]) - markerEnd : 1;
7771
- return markerEnd + (gap >= 1 && gap <= 4 ? gap : 1);
7772
- }
7773
- function tableContainerIndent(lines, start) {
7774
- return tableContainerIndentOf(lines, start, false);
7775
- }
7776
- function tableContainerIndentOf(lines, start, ownItem) {
7777
- const own = ownItem ? LIST_MARKER.exec(lines[start] ?? "") : null;
7778
- if (own) return markerContentColumn(own);
7779
- const header = lineIndent(lines[start] ?? "");
7780
- if (header === 0) return 0;
7781
- for (let k = start - 1; k >= 0; k -= 1) {
7782
- const line = lines[k] ?? "";
7783
- if (!line.trim()) continue;
7784
- const indent = lineIndent(line);
7785
- const marker = LIST_MARKER.exec(line);
7786
- if (marker && indent < header) {
7787
- const content = markerContentColumn(marker);
7788
- if (content <= header) return content;
7789
- continue;
7790
- }
7791
- if (indent === 0) return 0;
7792
- }
7793
- return 0;
7794
- }
7795
- var DELIMITER_CELL = /^:?-+:?$/;
7796
- function isGfmDelimiterRow(line) {
7797
- const trimmed = line.trim();
7798
- if (!trimmed.includes("|")) return false;
7799
- const cells = rowCells(trimmed);
7800
- return cells.length > 0 && cells.every((cell) => DELIMITER_CELL.test(cell));
7801
- }
7802
- function isPipeLedRow(line) {
7803
- const trimmed = line.trim();
7804
- return trimmed.startsWith("|") && trimmed.includes("|", 1);
7805
- }
7806
- function isTableDelimiter(line) {
7807
- if (line === void 0 || !isGfmDelimiterRow(line)) return false;
7808
- return !BLOCK_START.test(line.trim());
7809
- }
7810
- function startsPipelessTable(header, delimiter) {
7811
- const head = header.trim();
7812
- if (!head || isPipeLedRow(head) || !head.startsWith("|") && startsBlock(head)) return false;
7813
- if (!isTableDelimiter(delimiter)) return false;
7814
- return rowCells(head).length === rowCells(delimiter.trim()).length;
7815
- }
7816
- function continuesTable(line, containerIndent = 0) {
7817
- const trimmed = line.trim();
7818
- if (!trimmed) return false;
7819
- if (lineIndent(line) - containerIndent >= 4) return false;
7820
- return trimmed.startsWith("|") || !startsBlock(trimmed);
7821
- }
7822
- function opensTable(lines, index) {
7823
- const line = lines[index] ?? "";
7824
- if (!isPipeLedRow(line) && !startsPipelessTable(line, lines[index + 1])) return false;
7825
- return !isLazyContinuation(lines, index) && !insideHtmlBlock(lines, index);
7826
- }
7827
- var QUOTE_LINE = /^ {0,3}>/;
7828
- var THEMATIC_BREAK = /^(?:(?:-[ \t]*){3,}|(?:\*[ \t]*){3,}|(?:_[ \t]*){3,})$/;
7829
- var breaksParagraph = (trimmed) => /^#{1,6}(?:\s|$)/.test(trimmed) || THEMATIC_BREAK.test(trimmed) || opensStrictFence(trimmed) || startsHtmlBlock(trimmed);
7830
- function htmlBlockEnd(trimmed) {
7831
- if (HTML_RAW.test(trimmed)) return /<\/(?:script|pre|style|textarea)>/i;
7832
- if (trimmed.startsWith("<!--")) return /-->/;
7833
- if (trimmed.startsWith("<?")) return /\?>/;
7834
- if (trimmed.startsWith("<![CDATA[")) return /\]\]>/;
7835
- if (/^<![A-Za-z]/.test(trimmed)) return />/;
7836
- if (HTML_BLOCK_TAG.test(trimmed)) return null;
7837
- if (HTML_COMPLETE_TAG.test(trimmed)) return null;
7838
- return void 0;
7839
- }
7840
- function insideHtmlBlock(lines, index) {
7841
- let start = index;
7842
- while (start > 0 && (lines[start - 1] ?? "").trim()) start -= 1;
7843
- let open;
7844
- let paragraph = false;
7845
- for (let k = start; k < index; k += 1) {
7846
- const line = lines[k] ?? "";
7847
- if (open !== void 0) {
7848
- if (open && open.test(line)) open = void 0;
7849
- continue;
7850
- }
7851
- const trimmed = line.trim();
7852
- const end = lineIndent(line) < 4 ? htmlBlockEnd(trimmed) : void 0;
7853
- const type7 = end === null && !HTML_BLOCK_TAG.test(trimmed);
7854
- const interrupts = end !== void 0 && !(paragraph && type7);
7855
- if (!interrupts) {
7856
- paragraph = true;
7857
- continue;
7858
- }
7859
- paragraph = false;
7860
- open = end && end.test(trimmed.slice(2)) ? void 0 : end;
7861
- }
7862
- return open !== void 0;
7863
- }
7864
- function isLazyContinuation(lines, index) {
7865
- const header = lines[index] ?? "";
7866
- let first = -1;
7867
- for (let k = index - 1; k >= 0; k -= 1) {
7868
- const line = lines[k] ?? "";
7869
- const trimmed = line.trim();
7870
- if (!trimmed) break;
7871
- if (breaksParagraph(trimmed)) break;
7872
- const marker = LIST_MARKER.exec(line);
7873
- if (marker) {
7874
- const rest = line.slice(marker[0].length).trim();
7875
- if (!rest || breaksParagraph(rest)) break;
7876
- first = k;
7877
- break;
7878
- }
7879
- first = k;
7880
- if (QUOTE_LINE.test(line)) break;
7881
- }
7882
- if (first < 0) return false;
7883
- const start = lines[first] ?? "";
7884
- if (QUOTE_LINE.test(start)) return !QUOTE_LINE.test(header);
7885
- return lineIndent(header) < tableContainerIndentOf(lines, first, true);
7886
- }
7887
- function tableStartsAt(lines, index) {
7888
- const header = lines[index] ?? "";
7889
- const delimiter = lines[index + 1];
7890
- if (!opensTable(lines, index) || !isTableDelimiter(delimiter)) return false;
7891
- if (rowCells(header).length !== rowCells(delimiter).length) return false;
7892
- return lineIndent(header) - tableContainerIndent(lines, index) < 4;
7893
- }
7894
- function findTableStart(lines, from = 0) {
7895
- for (let i = Math.max(0, from); i < lines.length; i += 1) if (opensTable(lines, i)) return i;
7896
- return -1;
7897
- }
7898
- function findTableEnd(lines, start) {
7899
- const container = tableContainerIndent(lines, start);
7900
- let end = Math.min(lines.length, start + 2);
7901
- while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
7902
- return end;
7903
- }
7904
-
7905
- export { ACTION_BY_CLASS, AFTER_WINDOW, BacktickRuns, CALLOUT_NAMES, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DirectiveDecodeError, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceReader, IN_CONTENT_CLASSES, IR_ENVELOPE_CACHE_VERSION, IR_ENVELOPE_KEY, IR_PARTIAL_KEY, IR_VERSION, IrTree, JSON_DISCRIMINATOR, JsonStreamTokenizer, KIND_KEY, KindStorageError, KindStreamParser, NESTING_FENCE_LANGUAGES, NODE_OUTCOME_KIND, ParseSession, RESERVED_PREFIX, ROOT_STORAGE_NAME, RUN_RESULT_KIND, SIDE_EFFECT_CLASSES, SLUG_PREFIX, SourceSpliceError, XmlContainerTracker, advancePartialKind, asKindInstance, blockAt, blockEdit, blockRangeEdit, buildAgentSchemaWithRenderBlockSupport, buildCodePointIndex, buildCompliantKindSnapshot, buildDirectiveSlug, buildKindDirective, capabilityOf, classifyInboundEnvelopeMetadata, classifyInnerFenceLine, closeFence, codeSpanText, collectLinkDefinitions, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, continuesTable, convertAiSchemaToBlockFields, createFingerprinter, createKindStreamParser, createKindValidator, decodeDirective, describeDualGateFailure, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, disposeParseSession, emitPayloadFence, emitPayloadJson, emptyValueForFieldSchema, envelopeCacheFromEnvelopes, envelopeFromCompleteValue, executesAtOutputRoot, fenceDiscriminator, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, fieldsToDbPayload, findCodeRanges, findInlineCodeSpans, findTableEnd, findTableStart, fingerprintText, formatBlockLabel, getParseSession, injectKindIntoObjectSchema, irPathIsUnderOrEqual, irPathKey, irPathLabel, irPathsEqual, isCanonicalBlockIR, isDirectiveClass, isDuplicateBlockSlug, isEmptyResidue, isEscapedBracketMath, isGfmDelimiterRow, isHtmlBlockTagName, isIrEnvelopeCache, isJsonAnyField, isKindDirective, isLegacyShell, isMathPlaceholder, isPipeLedRow, isProvisionalKind, isReservedDirectiveSlug, isScalarArrayType, isSingleDollarMath, isTerminalKindEvent, islandEdit, itemFacts, itemSubtitle, itemTitle, joinSource, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, kindSchemaToStorage, kindVerdictOf, legacyShellUses, lineIndent, listIslands, looksLikeDirectiveHead, looksLikeDisplayMath, looksLikeOpenInlineMath, makePartialKindStalenessGate, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, mergeResidueIntoValue, normalizeAiSchemaInput, normalizeJsonRegion, normalizeLinkLabel, nounFamily, nounLabel, nounTitleColumn, openParseSession, opensTable, pairDisplayMath, parseDirectiveSlug, parseFenceOpener, pendingDisplayMathOpener, readEnvelope, readNodeOutcomeValue, readObjectKind, readOutputRef, readPartialKindEvent, readRunResultValue, readXmlTag, reconstructRegionValue, rehydrateNodeOutcome, rehydrateRunResult, resetLegacyShellUses, resolveReferenceLinks, resolvesInContent, reuseEnvelopeIfCurrent, rowCells, runKindDualGate, runSchemaConversion, sanitizeInboundEnvelopeMetadata, sanitizeInboundPartialKindMetadata, scalarArrayItemType, schemaLayoutMode, schemaStructureDepth, setJsonRootKeyLookup, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, storageToKindSchema, stripKindDeep, tableContainerIndent, tableStartsAt, titleCaseToken, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, tryDecodeDirective, tryDecodeDirectiveContent, unescapeCellPipes, validateBlockSchemaSavePlan, validateStructuralLeg, withRootKind, xmlDiscriminator };
7924
+ export { ACTION_BY_CLASS, AFTER_WINDOW, BacktickRuns, CALLOUT_NAMES, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DirectiveDecodeError, FENCE_OPENER_WHITESPACE, FENCE_WHITESPACE, FenceReader, IN_CONTENT_CLASSES, IR_ENVELOPE_CACHE_VERSION, IR_ENVELOPE_KEY, IR_PARTIAL_KEY, IR_VERSION, IrTree, JSON_DISCRIMINATOR, JsonStreamTokenizer, KIND_KEY, KindStorageError, KindStreamParser, NESTING_FENCE_LANGUAGES, NODE_OUTCOME_KIND, ParseSession, RESERVED_PREFIX, ROOT_STORAGE_NAME, RUN_RESULT_KIND, SIDE_EFFECT_CLASSES, SLUG_PREFIX, SourceSpliceError, XmlContainerTracker, advancePartialKind, asKindInstance, blockAt, blockEdit, blockRangeEdit, buildAgentSchemaWithRenderBlockSupport, buildCodePointIndex, buildCompliantKindSnapshot, buildDirectiveSlug, buildKindDirective, capabilityOf, classifyInboundEnvelopeMetadata, classifyInnerFenceLine, closeFence, codeSpanText, collectLinkDefinitions, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, continuesTable, convertAiSchemaToBlockFields, createFingerprinter, createKindStreamParser, createKindValidator, decodeDirective, describeDualGateFailure, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, disposeParseSession, emitPayloadFence, emitPayloadJson, emptyValueForFieldSchema, envelopeCacheFromEnvelopes, envelopeFromCompleteValue, executesAtOutputRoot, fenceDiscriminator, fenceLineKinds, fenceNestsInnerFences, fenceOpenerOf, fenceParts, fieldsToDbPayload, findCodeRanges, findInlineCodeSpans, findLinkDefinitionLines, findTableEnd, findTableStart, fingerprintText, formatBlockLabel, getParseSession, injectKindIntoObjectSchema, irPathIsUnderOrEqual, irPathKey, irPathLabel, irPathsEqual, isCanonicalBlockIR, isDirectiveClass, isDuplicateBlockSlug, isEmptyResidue, isEscapedBracketMath, isGfmDelimiterRow, isHtmlBlockTagName, isIrEnvelopeCache, isJsonAnyField, isKindDirective, isLegacyShell, isMathPlaceholder, isPipeLedRow, isProvisionalKind, isReservedDirectiveSlug, isScalarArrayType, isSingleDollarMath, isTerminalKindEvent, islandEdit, itemFacts, itemSubtitle, itemTitle, joinSource, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, kindSchemaToStorage, kindVerdictOf, legacyShellUses, lineIndent, listIslands, looksLikeDirectiveHead, looksLikeDisplayMath, looksLikeOpenInlineMath, makePartialKindStalenessGate, mapCodeRanges, mapInlineCodeSpans, mapPosition, mapRange, mergeResidueIntoValue, normalizeAiSchemaInput, normalizeJsonRegion, normalizeLinkLabel, nounFamily, nounLabel, nounTitleColumn, openParseSession, opensTable, pairDisplayMath, parseDirectiveSlug, parseFenceOpener, pendingDisplayMathOpener, readEnvelope, readNodeOutcomeValue, readObjectKind, readOutputRef, readPartialKindEvent, readRunResultValue, readXmlTag, reconstructRegionValue, rehydrateNodeOutcome, rehydrateRunResult, resetLegacyShellUses, resolveReferenceLinks, resolvesInContent, reuseEnvelopeIfCurrent, rowCells, runKindDualGate, runSchemaConversion, sanitizeInboundEnvelopeMetadata, sanitizeInboundPartialKindMetadata, scalarArrayItemType, schemaLayoutMode, schemaStructureDepth, setJsonRootKeyLookup, singleDollarAfter, singleDollarMathEnd, spliceSave, splitRowSegments, splitsSurrogatePair, startsHtmlBlock, startsPipelessTable, storageToKindSchema, stripKindDeep, tableContainerIndent, tableStartsAt, titleCaseToken, toCodePointOffset, toUtf16Offset, tokenizeSource, trimFenceLine, tryDecodeDirective, tryDecodeDirectiveContent, unescapeCellPipes, validateBlockSchemaSavePlan, validateStructuralLeg, withRootKind, xmlDiscriminator };
7906
7925
  //# sourceMappingURL=index.js.map
7907
7926
  //# sourceMappingURL=index.js.map