aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorChristian Despres <50160106+despresc@users.noreply.github.com>2020-09-05 17:36:51 -0400
committerGitHub <noreply@github.com>2020-09-05 14:36:51 -0700
commit10c6c411f9bd582ce9bafe159728f322a54395cd (patch)
tree710e87c33e06824eeb171a5ddc5c9eb174c9f43e /pandoc.cabal
parent3935c9c5c4b070d43b2d7d946fd28dfdaf87e080 (diff)
downloadpandoc-10c6c411f9bd582ce9bafe159728f322a54395cd.tar.gz
Add Writers.Tables helper functions and types, add tests for those (#6655)
Add Writers.Tables helper functions and types, add tests for those The Writers.Tables module contains an AnnTable type that is a pandoc Table with added inferred information that should be enough for writers (in particular the HTML writer) to operate on without having to lay out the table themselves. The toAnnTable and fromAnnTable functions in that module convert between AnnTable and Table. In addition to producing an AnnTable with coherent and well-formed annotations, the toAnnTable function also normalizes its input Table like the table builder does. Various tests ensure that toAnnTable normalizes tables exactly like the table builder, and that its annotations are coherent.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal2
1 files changed, 2 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 76e93d2e6..4c27c037d 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -553,6 +553,7 @@ library
Text.Pandoc.Writers.Math,
Text.Pandoc.Writers.Shared,
Text.Pandoc.Writers.OOXML,
+ Text.Pandoc.Writers.Tables,
Text.Pandoc.Lua,
Text.Pandoc.PDF,
Text.Pandoc.UTF8,
@@ -820,6 +821,7 @@ test-suite test-pandoc
Tests.Writers.Powerpoint
Tests.Writers.OOXML
Tests.Writers.Ms
+ Tests.Writers.Tables
if os(windows)
cpp-options: -D_WINDOWS
default-language: Haskell2010