From 10c6c411f9bd582ce9bafe159728f322a54395cd Mon Sep 17 00:00:00 2001 From: Christian Despres <50160106+despresc@users.noreply.github.com> Date: Sat, 5 Sep 2020 17:36:51 -0400 Subject: 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. --- cabal.project | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cabal.project') diff --git a/cabal.project b/cabal.project index 7ce2b2d68..52c85d222 100644 --- a/cabal.project +++ b/cabal.project @@ -12,3 +12,8 @@ source-repository-package type: git location: https://github.com/jgm/pandoc-citeproc tag: 0.17.0.2 + +source-repository-package + type: git + location: https://github.com/jgm/pandoc-types + tag: 8e9ca37802120f32ececac752d73463e2fc86811 -- cgit v1.2.3