From d7a91be9a32c3aa539c39d4e801f127ea2cba7fe Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 29 Jun 2011 11:32:01 -0400 Subject: Fixed #30. Tables now allow three spaces of indent like PHP Markdown Extra. Thanks to skurfer for report and inital patch. --- tests/extensions/extra/tables.html | 45 +++++++++++++++++++++++++++++++++++++- tests/extensions/extra/tables.txt | 18 +++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) (limited to 'tests/extensions') diff --git a/tests/extensions/extra/tables.html b/tests/extensions/extra/tables.html index 1d626da..64196ec 100644 --- a/tests/extensions/extra/tables.html +++ b/tests/extensions/extra/tables.html @@ -116,4 +116,47 @@ W - \ No newline at end of file + +

Three spaces in front of a table:

+ + + + + + + + + + + + + + + + + +
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
+ + + + + + + + + + + + + + + + + +
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
+

Four spaces is a code block:

+
First Header | Second Header
+------------ | -------------
+Content Cell | Content Cell
+Content Cell | Content Cell
+
\ No newline at end of file diff --git a/tests/extensions/extra/tables.txt b/tests/extensions/extra/tables.txt index 64917ab..cf97cb5 100644 --- a/tests/extensions/extra/tables.txt +++ b/tests/extensions/extra/tables.txt @@ -32,3 +32,21 @@ foo|bar|baz | Q | W | | W +Three spaces in front of a table: + + First Header | Second Header + ------------ | ------------- + Content Cell | Content Cell + Content Cell | Content Cell + + | First Header | Second Header | + | ------------ | ------------- | + | Content Cell | Content Cell | + | Content Cell | Content Cell | + +Four spaces is a code block: + + First Header | Second Header + ------------ | ------------- + Content Cell | Content Cell + Content Cell | Content Cell -- cgit v1.2.3