@mintlify/cli 4.0.1456 → 4.0.1458

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.
@@ -1605,7 +1605,7 @@ function handleFlowJsxInner(node, ctx, transformNode2, mapJsxChildren2) {
1605
1605
  content: mapJsxChildren2(node, ctx)
1606
1606
  };
1607
1607
  }
1608
- if (node.name === "table" && !hasSpannedCell(node)) {
1608
+ if (node.name === "table" && !hasSpannedCell(node) && !hasTableClass(node)) {
1609
1609
  return handleHtmlTable(node, ctx, transformNode2, mapJsxChildren2);
1610
1610
  }
1611
1611
  if (HTML_ELEMENTS.has(node.name)) {
@@ -1841,6 +1841,10 @@ function handleTree(node) {
1841
1841
  };
1842
1842
  }
1843
1843
  var CELL_SPAN_ATTRS = /* @__PURE__ */ new Set(["colspan", "colSpan", "rowspan", "rowSpan"]);
1844
+ var TABLE_CLASS_ATTRS = /* @__PURE__ */ new Set(["class", "className"]);
1845
+ function hasTableClass(node) {
1846
+ return node.attributes.some((a) => a.type === "mdxJsxAttribute" && TABLE_CLASS_ATTRS.has(a.name));
1847
+ }
1844
1848
  function hasSpannedCell(node) {
1845
1849
  if (isTableCellJsxNode(node) && node.attributes.some((a) => a.type === "mdxJsxAttribute" && CELL_SPAN_ATTRS.has(a.name))) {
1846
1850
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1456",
3
+ "version": "4.0.1458",
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.1122",
49
- "@mintlify/link-rot": "3.0.1324",
48
+ "@mintlify/common": "1.0.1123",
49
+ "@mintlify/link-rot": "3.0.1325",
50
50
  "@mintlify/models": "0.0.351",
51
- "@mintlify/prebuild": "1.0.1276",
52
- "@mintlify/previewing": "4.0.1348",
51
+ "@mintlify/prebuild": "1.0.1277",
52
+ "@mintlify/previewing": "4.0.1349",
53
53
  "@mintlify/validation": "0.1.844",
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.346",
89
+ "@mintlify/editor": "0.0.348",
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": "6d4fe7b568f4cfeb4766327c5bfbc0fecbfd45cd"
108
+ "gitHead": "ec78b5ae82df3605eb44f237475df7bd7ac4ac66"
109
109
  }