@ai-matrx/content-ir 0.22.5 → 0.22.7

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.cjs CHANGED
@@ -1197,6 +1197,12 @@ function findTableEnd(lines, start) {
1197
1197
  while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
1198
1198
  return end;
1199
1199
  }
1200
+ function startsLikeTableRow(line) {
1201
+ return /^\s*\|/.test(line);
1202
+ }
1203
+ function isGrowingDelimiterRow(line) {
1204
+ return /^[\s|:-]*-[\s|:-]*$/.test(line);
1205
+ }
1200
1206
 
1201
1207
  // source/tokenize.ts
1202
1208
  var QUOTE_PREFIX = /^ {0,3}>(?: ?>)* ?/;
@@ -3275,12 +3281,6 @@ function findWholeTableStart(lines, from = 0) {
3275
3281
  for (let i = Math.max(0, from); i + 1 < lines.length; i += 1) if (tableStartsAt(lines, i)) return i;
3276
3282
  return -1;
3277
3283
  }
3278
- function startsLikeTableRow(line) {
3279
- return /^\s*\|/.test(line);
3280
- }
3281
- function isGrowingDelimiterRow(line) {
3282
- return /^[\s|:-]*-[\s|:-]*$/.test(line);
3283
- }
3284
3284
  function trailingTableStart(lines, end = lines.length) {
3285
3285
  const isTableLine = (line) => startsLikeTableRow(line) || continuesTable(line.trimStart());
3286
3286
  let start = end;