@adobe/helix-html-pipeline 5.0.5 → 5.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.0.7](https://github.com/adobe/helix-html-pipeline/compare/v5.0.6...v5.0.7) (2023-10-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-markdown-support to v7.1.0 ([2f6bffa](https://github.com/adobe/helix-html-pipeline/commit/2f6bffa982a082c38114e18cac0c0b9d5cf207fd))
7
+
8
+ ## [5.0.6](https://github.com/adobe/helix-html-pipeline/compare/v5.0.5...v5.0.6) (2023-09-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * error with empty html table row ([#413](https://github.com/adobe/helix-html-pipeline/issues/413)) ([a3dedd5](https://github.com/adobe/helix-html-pipeline/commit/a3dedd5118a5c4e742feda144a5c44e3480af3b3)), closes [#412](https://github.com/adobe/helix-html-pipeline/issues/412)
14
+
1
15
  ## [5.0.5](https://github.com/adobe/helix-html-pipeline/compare/v5.0.4...v5.0.5) (2023-09-26)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "node": ">=16.x"
43
43
  },
44
44
  "dependencies": {
45
- "@adobe/helix-markdown-support": "7.0.0",
45
+ "@adobe/helix-markdown-support": "7.1.0",
46
46
  "@adobe/helix-shared-utils": "3.0.0",
47
47
  "@adobe/mdast-util-gridtables": "3.0.1",
48
48
  "@adobe/remark-gridtables": "2.0.1",
@@ -34,6 +34,9 @@ function tableToDivs($table) {
34
34
  return $cards;
35
35
  }
36
36
  const $headerCols = childNodes($rows.shift());
37
+ if ($headerCols.length === 0) {
38
+ return $cards;
39
+ }
37
40
 
38
41
  // special case, only 1 row and 1 column with a nested table
39
42
  if ($rows.length === 0 && $headerCols.length === 1) {