@mintlify/cli 4.0.1538 → 4.0.1540

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.
@@ -2447,10 +2447,13 @@ function trimParagraph(paragraph) {
2447
2447
  return Object.assign(Object.assign({}, paragraph), { content: content.filter((n) => n.type !== "text" || n.text !== "") });
2448
2448
  }
2449
2449
  function handleTable(node, ctx, transformNode2) {
2450
+ var _a, _b;
2450
2451
  const rows = node.children;
2451
2452
  const alignments = node.align || [];
2453
+ const columnCount = (_b = (_a = rows[0]) === null || _a === void 0 ? void 0 : _a.children.length) !== null && _b !== void 0 ? _b : 0;
2452
2454
  const tableContent = rows.map((row, rowIndex) => {
2453
- const cells = row.children;
2455
+ const width = row.children.reduce((w, cell, i) => cell.children.length > 0 ? Math.max(w, i + 1) : w, columnCount);
2456
+ const cells = row.children.slice(0, width);
2454
2457
  const rowContent = cells.map((cell, cellIndex) => {
2455
2458
  const cellContent = buildMarkdownTableCellContent(cell.children, ctx, transformNode2);
2456
2459
  const alignment = alignments[cellIndex];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1538",
3
+ "version": "4.0.1540",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -45,12 +45,12 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@inquirer/prompts": "7.9.0",
48
- "@mintlify/common": "1.0.1171",
49
- "@mintlify/link-rot": "3.0.1376",
48
+ "@mintlify/common": "1.0.1173",
49
+ "@mintlify/link-rot": "3.0.1378",
50
50
  "@mintlify/models": "0.0.362",
51
- "@mintlify/prebuild": "1.0.1328",
52
- "@mintlify/previewing": "4.0.1400",
53
- "@mintlify/validation": "0.1.873",
51
+ "@mintlify/prebuild": "1.0.1330",
52
+ "@mintlify/previewing": "4.0.1402",
53
+ "@mintlify/validation": "0.1.874",
54
54
  "adm-zip": "0.6.0",
55
55
  "chalk": "5.2.0",
56
56
  "color": "4.2.3",
@@ -86,7 +86,7 @@
86
86
  "keytar": "7.9.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@mintlify/editor": "0.0.419",
89
+ "@mintlify/editor": "0.0.421",
90
90
  "@mintlify/ts-config": "2.0.2",
91
91
  "@tsconfig/recommended": "1.0.2",
92
92
  "@types/detect-port": "1.3.2",
@@ -105,5 +105,5 @@
105
105
  "vitest": "2.1.9",
106
106
  "vitest-mock-process": "1.0.4"
107
107
  },
108
- "gitHead": "8cb4865053ce68e70deaa4066d29c55c23bc7ae9"
108
+ "gitHead": "eca0b1a3bf26a231fb84bef5ffc23dcc748779dc"
109
109
  }