From d2cc56a46a5a3c657429e8df5b93c82f3f9ed9fb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 22 Jul 2012 22:09:15 -0700 Subject: Revised code for pipe tables. * All tables now require at least one body row. * Renamed from 'extra' to 'pipe' tables. * Moved functions from Parsing to Readers.Markdown. * Cleaned up code; revised to parse in one pass rather than parsing a raw string, splitting it, and parsing the components. * Allow pipe tables without pipes on the ends (as PHP Markdown Extra does). --- src/Tests/Old.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Tests/Old.hs') diff --git a/src/Tests/Old.hs b/src/Tests/Old.hs index 8a88e4034..e60f390df 100644 --- a/src/Tests/Old.hs +++ b/src/Tests/Old.hs @@ -56,8 +56,8 @@ tests = [ testGroup "markdown" "testsuite.txt" "testsuite.native" , test "tables" ["-r", "markdown", "-w", "native", "--columns=80"] "tables.txt" "tables.native" - , test "extratables" ["-r", "markdown", "-w", "native", "--columns=80"] - "extra-tables.markdown" "extra-tables.native" + , test "pipe tables" ["-r", "markdown", "-w", "native", "--columns=80"] + "pipe-tables.txt" "pipe-tables.native" , test "more" ["-r", "markdown", "-w", "native", "-S"] "markdown-reader-more.txt" "markdown-reader-more.native" , lhsReaderTest "markdown+lhs" -- cgit v1.2.3