@ai-matrx/content-ir 0.22.4 → 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/dist/index.js CHANGED
@@ -6401,6 +6401,12 @@ function findTableEnd(lines, start) {
6401
6401
  while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
6402
6402
  return end;
6403
6403
  }
6404
+ function startsLikeTableRow(line) {
6405
+ return /^\s*\|/.test(line);
6406
+ }
6407
+ function isGrowingDelimiterRow(line) {
6408
+ return /^[\s|:-]*-[\s|:-]*$/.test(line);
6409
+ }
6404
6410
 
6405
6411
  // source/tokenize.ts
6406
6412
  var QUOTE_PREFIX = /^ {0,3}>(?: ?>)* ?/;
@@ -8479,12 +8485,6 @@ function findWholeTableStart(lines, from = 0) {
8479
8485
  for (let i = Math.max(0, from); i + 1 < lines.length; i += 1) if (tableStartsAt(lines, i)) return i;
8480
8486
  return -1;
8481
8487
  }
8482
- function startsLikeTableRow(line) {
8483
- return /^\s*\|/.test(line);
8484
- }
8485
- function isGrowingDelimiterRow(line) {
8486
- return /^[\s|:-]*-[\s|:-]*$/.test(line);
8487
- }
8488
8488
  function trailingTableStart(lines, end = lines.length) {
8489
8489
  const isTableLine = (line) => startsLikeTableRow(line) || continuesTable(line.trimStart());
8490
8490
  let start = end;