@ai-matrx/content-ir 0.22.5 → 0.22.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.6
4
+
5
+ - `startsLikeTableRow` / `isGrowingDelimiterRow` (the streaming forms of the table rule) now live in `source/gfm-table.ts` beside the rest of THE GFM table rule; the public exports are unchanged (AP-2: `check-table-readers` green with an empty baseline).
6
+
7
+ **Consumer action:** none.
8
+
3
9
  ## 0.22.5
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -6407,6 +6407,12 @@ function findTableEnd(lines, start) {
6407
6407
  while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
6408
6408
  return end;
6409
6409
  }
6410
+ function startsLikeTableRow(line) {
6411
+ return /^\s*\|/.test(line);
6412
+ }
6413
+ function isGrowingDelimiterRow(line) {
6414
+ return /^[\s|:-]*-[\s|:-]*$/.test(line);
6415
+ }
6410
6416
 
6411
6417
  // source/tokenize.ts
6412
6418
  var QUOTE_PREFIX = /^ {0,3}>(?: ?>)* ?/;
@@ -8485,12 +8491,6 @@ function findWholeTableStart(lines, from = 0) {
8485
8491
  for (let i = Math.max(0, from); i + 1 < lines.length; i += 1) if (tableStartsAt(lines, i)) return i;
8486
8492
  return -1;
8487
8493
  }
8488
- function startsLikeTableRow(line) {
8489
- return /^\s*\|/.test(line);
8490
- }
8491
- function isGrowingDelimiterRow(line) {
8492
- return /^[\s|:-]*-[\s|:-]*$/.test(line);
8493
- }
8494
8494
  function trailingTableStart(lines, end = lines.length) {
8495
8495
  const isTableLine = (line) => startsLikeTableRow(line) || continuesTable(line.trimStart());
8496
8496
  let start = end;