@mintlify/cli 4.0.1538 → 4.0.1539
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/bin/vendor/converter.js +4 -1
- package/package.json +7 -7
package/bin/vendor/converter.js
CHANGED
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "4.0.1539",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1172",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1377",
|
|
50
50
|
"@mintlify/models": "0.0.362",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1329",
|
|
52
|
+
"@mintlify/previewing": "4.0.1401",
|
|
53
53
|
"@mintlify/validation": "0.1.873",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"keytar": "7.9.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@mintlify/editor": "0.0.
|
|
89
|
+
"@mintlify/editor": "0.0.420",
|
|
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": "
|
|
108
|
+
"gitHead": "c302fe4eb29b35ceb547591e87ee1a01af1bcbc6"
|
|
109
109
|
}
|