@adobe/helix-markdown-support 4.0.1 → 4.0.2

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,10 @@
1
+ ## [4.0.2](https://github.com/adobe/helix-markdown-support/compare/v4.0.1...v4.0.2) (2022-09-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * empty cell with v-align throws ([#132](https://github.com/adobe/helix-markdown-support/issues/132)) ([14510b2](https://github.com/adobe/helix-markdown-support/commit/14510b27fbed96c2845527f3cb4c7e7896e1bf9c))
7
+
1
8
  ## [4.0.1](https://github.com/adobe/helix-markdown-support/compare/v4.0.0...v4.0.1) (2022-09-02)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-markdown-support",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Helix Markdown Support",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -173,7 +173,7 @@ class Table {
173
173
  let col = cols[x];
174
174
  if (!col) {
175
175
  col = {
176
- width: 0,
176
+ width: 3,
177
177
  };
178
178
  cols[x] = col;
179
179
  }
@@ -220,6 +220,10 @@ class Table {
220
220
  const col = cols[x + idx];
221
221
  col.width = Math.max(col.width, avgColWidth);
222
222
  }
223
+ // if valign, the col needs to be at least 4 (3 + delim) wide
224
+ if (cell.valign) {
225
+ cols[x].width = Math.max(4, cols[x].width);
226
+ }
223
227
  }
224
228
  }
225
229
  }