@mintlify/cli 4.0.1429 → 4.0.1431

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.
@@ -1771,16 +1771,19 @@ function handleTree(node) {
1771
1771
  function handleHtmlTable(node, ctx, transformNode2, mapJsxChildren2) {
1772
1772
  const rows = [];
1773
1773
  for (const child of node.children) {
1774
- if (child.type !== "mdxJsxFlowElement")
1775
- continue;
1776
- if (child.name === "tbody" || child.name === "thead") {
1774
+ if (isTableRowJsxNode(child)) {
1775
+ rows.push(child);
1776
+ } else if (child.type === "mdxJsxFlowElement" && (child.name === "tbody" || child.name === "thead")) {
1777
1777
  for (const rowChild of child.children) {
1778
- if (rowChild.type === "mdxJsxFlowElement" && rowChild.name === "tr") {
1778
+ if (isTableRowJsxNode(rowChild)) {
1779
1779
  rows.push(rowChild);
1780
+ } else if (rowChild.type === "paragraph") {
1781
+ for (const paragraphChild of rowChild.children) {
1782
+ if (isTableRowJsxNode(paragraphChild))
1783
+ rows.push(paragraphChild);
1784
+ }
1780
1785
  }
1781
1786
  }
1782
- } else if (child.name === "tr") {
1783
- rows.push(child);
1784
1787
  }
1785
1788
  }
1786
1789
  if (rows.length === 0) {
@@ -1820,11 +1823,11 @@ var TABLE_BLOCK_NODE_TYPES = /* @__PURE__ */ new Set([
1820
1823
  function flattenPmContent(content) {
1821
1824
  return Array.isArray(content) ? content.filter(Boolean) : [content];
1822
1825
  }
1826
+ function isTableRowJsxNode(node) {
1827
+ return (node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement") && node.name === "tr";
1828
+ }
1823
1829
  function isTableCellJsxNode(node) {
1824
- if (!node || typeof node !== "object")
1825
- return false;
1826
- const candidate = node;
1827
- return (candidate.type === "mdxJsxFlowElement" || candidate.type === "mdxJsxTextElement") && (candidate.name === "td" || candidate.name === "th");
1830
+ return (node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement") && (node.name === "td" || node.name === "th");
1828
1831
  }
1829
1832
  function convertHtmlTableCellChildren(cell, ctx, transformNode2, mapJsxChildren2) {
1830
1833
  var _a, _b, _c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1429",
3
+ "version": "4.0.1431",
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.1108",
49
- "@mintlify/link-rot": "3.0.1310",
48
+ "@mintlify/common": "1.0.1109",
49
+ "@mintlify/link-rot": "3.0.1311",
50
50
  "@mintlify/models": "0.0.350",
51
- "@mintlify/prebuild": "1.0.1262",
52
- "@mintlify/previewing": "4.0.1334",
51
+ "@mintlify/prebuild": "1.0.1263",
52
+ "@mintlify/previewing": "4.0.1335",
53
53
  "@mintlify/validation": "0.1.840",
54
54
  "adm-zip": "0.6.0",
55
55
  "chalk": "5.2.0",
@@ -82,7 +82,7 @@
82
82
  "keytar": "7.9.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@mintlify/editor": "0.0.322",
85
+ "@mintlify/editor": "0.0.324",
86
86
  "@mintlify/ts-config": "2.0.2",
87
87
  "@tsconfig/recommended": "1.0.2",
88
88
  "@types/detect-port": "1.3.2",
@@ -101,5 +101,5 @@
101
101
  "vitest": "2.1.9",
102
102
  "vitest-mock-process": "1.0.4"
103
103
  },
104
- "gitHead": "b153f9fb2ca884a1106f593ec3f87139221f5d55"
104
+ "gitHead": "de079037f3696ba4e2ee90f447c2759abbf7dd44"
105
105
  }