@ai-matrx/content-ir 0.19.9 → 0.19.10

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.19.10
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/content-ir-core/v0.19.9..npm/content-ir-core/v0.19.10 -- apps/shared/content-ir-core`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.19.9
4
10
  ### Unreleased
5
11
 
package/dist/index.cjs CHANGED
@@ -7753,11 +7753,14 @@ function isPipeLedRow(line) {
7753
7753
  const trimmed = line.trim();
7754
7754
  return trimmed.startsWith("|") && trimmed.includes("|", 1);
7755
7755
  }
7756
+ function isTableDelimiter(line) {
7757
+ if (line === void 0 || !isGfmDelimiterRow(line)) return false;
7758
+ return !BLOCK_START.test(line.trim());
7759
+ }
7756
7760
  function startsPipelessTable(header, delimiter) {
7757
7761
  const head = header.trim();
7758
- if (!head || head.startsWith("|") || startsBlock(head)) return false;
7759
- if (splitRowSegments(head).length < 2) return false;
7760
- if (delimiter === void 0 || !isGfmDelimiterRow(delimiter)) return false;
7762
+ if (!head || isPipeLedRow(head) || !head.startsWith("|") && startsBlock(head)) return false;
7763
+ if (!isTableDelimiter(delimiter)) return false;
7761
7764
  return rowCells(head).length === rowCells(delimiter.trim()).length;
7762
7765
  }
7763
7766
  function continuesTable(line, containerIndent = 0) {
@@ -7798,7 +7801,11 @@ function isLazyContinuation(lines, index) {
7798
7801
  return lineIndent(header) < tableContainerIndentOf(lines, first, true);
7799
7802
  }
7800
7803
  function tableStartsAt(lines, index) {
7801
- return opensTable(lines, index) && isGfmDelimiterRow(lines[index + 1] ?? "");
7804
+ const header = lines[index] ?? "";
7805
+ const delimiter = lines[index + 1];
7806
+ if (!opensTable(lines, index) || !isTableDelimiter(delimiter)) return false;
7807
+ if (rowCells(header).length !== rowCells(delimiter).length) return false;
7808
+ return lineIndent(header) - tableContainerIndent(lines, index) < 4;
7802
7809
  }
7803
7810
  function findTableStart(lines, from = 0) {
7804
7811
  for (let i = Math.max(0, from); i < lines.length; i += 1) if (opensTable(lines, i)) return i;