From ab9f4c2dfb678c773387fe478f24bb59a0908e27 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Thu, 26 Jan 2017 11:25:06 -0700 Subject: Fix regression of single column tables (#540) Single column tables are valid tables, so add back in the accidentally removed functionality of allowing single column tables, but with one exception -- table bodies should not render empty (an empty `` is invalid HTML. Fixes #539. --- tests/extensions/extra/tables.html | 92 +++++++++++++++++++++++++++++++++++++- tests/extensions/extra/tables.txt | 39 ++++++++++++++++ 2 files changed, 129 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/extensions/extra/tables.html b/tests/extensions/extra/tables.html index 2418c98..25dee48 100644 --- a/tests/extensions/extra/tables.html +++ b/tests/extensions/extra/tables.html @@ -167,7 +167,12 @@ Content Cell | Content Cell Second Header - + + + + + +

More inline code block tests

@@ -375,4 +380,87 @@ Content Cell | Content Cell -
\\code
\ No newline at end of file + +

Single column tables

+ + + + + + + + + + + +
Is a Table
+ + + + + + + + + + + +
Is a Table
+ + + + + + + + + + + +
Is a Table
+ + + + + + + + + + + +
Is a Table
row
+ + + + + + + + + + + +
Is a Table
row
+ + + + + + + + + + + +
Is a Table
row
+

| Is not a Table

+

| row

+

Is not a Table |

+

row |

+

| Is not a Table +| -------------- +row

+

Is not a Table | +-------------- | +row

\ No newline at end of file diff --git a/tests/extensions/extra/tables.txt b/tests/extensions/extra/tables.txt index d766224..2dc4967 100644 --- a/tests/extensions/extra/tables.txt +++ b/tests/extensions/extra/tables.txt @@ -128,3 +128,42 @@ Should not be code | Should be code ------------------ | -------------- \`Not code\` | \\`code` \\\`Not code\\\` | \\\\`code` + +Single column tables + +| Is a Table | +| ---------- | + +| Is a Table +| ---------- + +Is a Table | +---------- | + +| Is a Table | +| ---------- | +| row | + +| Is a Table +| ---------- +| row + +Is a Table | +---------- | +row | + +| Is not a Table +-------------- +| row + +Is not a Table | +-------------- +row | + +| Is not a Table +| -------------- +row + +Is not a Table | +-------------- | +row -- cgit v1.2.3