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.txt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'tests/extensions/extra/tables.txt') 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