summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2022-08-05 13:41:42 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2022-08-05 13:48:30 +0200
commitfc3b9e763f88546d2987819c2303a014f464a553 (patch)
tree7fb9bd9f283ad60b114816b6520f98747b0f13ca
parent0f80284c3d832a43c20f8b8e79fa7485c22c837e (diff)
Use dev version of gridtables.
Closes: #8216
-rw-r--r--cabal.project4
-rw-r--r--stack.yaml3
-rw-r--r--test/command/8216.md51
3 files changed, 57 insertions, 1 deletions
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
+<table style="width:69%;">
+<caption>Grid Table</caption>
+<colgroup>
+<col style="width: 25%" />
+<col style="width: 44%" />
+</colgroup>
+<tbody>
+<tr class="odd">
+<td>Some text</td>
+<td><span class="class1 class2 class3">text</span></td>
+</tr>
+<tr class="even">
+<td>Some text</td>
+<td><span class="class1 class2 class3">text</span></td>
+</tr>
+<tr class="odd">
+<td>Some text</td>
+<td><span class="class1 class2 class3">text</span></td>
+</tr>
+</tbody>
+</table>
+```
+
+Missing cell
+
+```
+% pandoc -f markdown -t gfm
++------+
+| text |
++------+---+
+| text | 1 |
++------+---+
+^D
+| | |
+|------|-----|
+| text | |
+| text | 1 |
+```