From fc3b9e763f88546d2987819c2303a014f464a553 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 5 Aug 2022 13:41:42 +0200 Subject: [PATCH] Use dev version of gridtables. Closes: #8216 --- cabal.project | 4 ++++ stack.yaml | 3 ++- test/command/8216.md | 51 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 test/command/8216.md diff --git a/cabal.project b/cabal.project index b0606c372..7e9293916 100644 --- a/cabal.project +++ b/cabal.project @@ -3,3 +3,7 @@ tests: True flags: +embed_data_files constraints: aeson >= 2.0.1.0 +source-repository-package + type: git + location: https://github.com/tarleb/gridtables + tag: 76198add9b404124b3a2fdf137399256a91d337b diff --git a/stack.yaml b/stack.yaml index 93a93292e..5e76d1f8f 100644 --- a/stack.yaml +++ b/stack.yaml @@ -13,7 +13,6 @@ extra-deps: - skylighting-format-latex-0.1 - skylighting-format-blaze-html-0.1 - emojis-0.1.2 -- gridtables-0.0.2.0 - lpeg-1.0.3 - hslua-2.2.1 - hslua-aeson-2.2.1 @@ -44,6 +43,8 @@ extra-deps: - doctemplates-0.10.0.2 - citeproc-0.8.0.1 - texmath-0.12.5.2 +- git: https://github.com/tarleb/gridtables + commit: 76198add9b404124b3a2fdf137399256a91d337b ghc-options: "$locals": -fhide-source-paths -Wno-missing-home-modules diff --git a/test/command/8216.md b/test/command/8216.md new file mode 100644 index 000000000..5aeb2efea --- /dev/null +++ b/test/command/8216.md @@ -0,0 +1,51 @@ +Misaligned separators in grid table +``` +% pandoc -f markdown -t html +: Grid Table + ++-----------------+:-:+ +|Some text |[text]{.class1 .class2 .class3}| ++-----------------+---+ +|Some text |[text]{.class1 .class2 .class3}| ++-----------------+---+ +|Some text |[text]{.class1 .class2 .class3}| ++-----------------+---+ +^D + + ++++ + + + + + + + + + + + + + + +
Grid Table
Some texttext
Some texttext
Some texttext
+``` + +Missing cell + +``` +% pandoc -f markdown -t gfm ++------+ +| text | ++------+---+ +| text | 1 | ++------+---+ +^D +| | | +|------|-----| +| text | | +| text | 1 | +```