@adobe/helix-html-pipeline 5.0.4 → 5.0.6

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.6](https://github.com/adobe/helix-html-pipeline/compare/v5.0.5...v5.0.6) (2023-09-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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)
7
+
8
+ ## [5.0.5](https://github.com/adobe/helix-html-pipeline/compare/v5.0.4...v5.0.5) (2023-09-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/mdast-util-gridtables to v3.0.1 ([dbcd278](https://github.com/adobe/helix-html-pipeline/commit/dbcd278cb58cd7de2548fbc776d633322976d2e1))
14
+
1
15
  ## [5.0.4](https://github.com/adobe/helix-html-pipeline/compare/v5.0.3...v5.0.4) (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.4",
3
+ "version": "5.0.6",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@adobe/helix-markdown-support": "7.0.0",
46
46
  "@adobe/helix-shared-utils": "3.0.0",
47
- "@adobe/mdast-util-gridtables": "3.0.0",
47
+ "@adobe/mdast-util-gridtables": "3.0.1",
48
48
  "@adobe/remark-gridtables": "2.0.1",
49
49
  "cookie": "0.5.0",
50
50
  "github-slugger": "2.0.0",
@@ -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) {