diff --git a/index.compiler.spec.js b/index.compiler.spec.js index d69b9c5e..7dbf4b62 100644 --- a/index.compiler.spec.js +++ b/index.compiler.spec.js @@ -1561,6 +1561,61 @@ describe('GFM tables', () => { +`); + }); + + it('#241 should not ignore the first cell when its contents is empty', () => { + render( + compiler( + [ + '| Foo | Bar | Baz |', + '| --- | --- | --- |', + '| | 2 | 3 |', + '| | 5 | 6 |', + ].join('\n') + ) + ); + + expect(root.innerHTML).toMatchInlineSnapshot(` + + + + + + + + + + + + + + + + + + + + + +
+ Foo + + Bar + + Baz +
+ + 2 + + 3 +
+ + 5 + + 6 +
+ `); });