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. --- stack.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stack.yaml') diff --git a/stack.yaml b/stack.yaml index 8e34f3399..15c0e7566 100644 --- a/stack.yaml +++ b/stack.yaml @@ -12,7 +12,8 @@ flags: packages: - '.' extra-deps: -- pandoc-types-1.21 +- git: https://github.com/jgm/pandoc-types + commit: 8e9ca37802120f32ececac752d73463e2fc86811 - pandoc-citeproc-0.17.0.2 - rfc5051-0.2 - texmath-0.12.0.2 -- cgit v1.2.3