summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test')
-rw-r--r--macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test76
1 files changed, 76 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test
new file mode 100644
index 0000000000..11db7c69e6
--- /dev/null
+++ b/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test
@@ -0,0 +1,76 @@
+\def\markdownOptionPipeTables{true}
+\def\markdownOptionTableCaptions{true}
+<<<
+This test ensures that the Lua `tableCaptions` option correctly propagates
+through the plain TeX interface.
+
+| Right | *Left* | Default | Center |
+|------:|:-------|-------------|:------:|
+| 12 | 12 | 12 | 12 |
+| 123 | 123 | **123** | 123 |
+| 1 | 1 | 1 | 1 |
+
+ : Demonstration of *pipe table* syntax with the caption spreading over
+ multiple lines.
+
+| Right | *Left* | Default | Center |
+|------:|:-------|-------------|:------:|
+| 12 | 12 | 12 | 12 |
+| 123 | 123 | **123** | 123 |
+| 1 | 1 | 1 | 1 |
+
+ Table: Demonstration of *pipe table* syntax with the caption spreading over
+ multiple lines.
+
+A caption may not span multiple paragraphs.
+>>>
+codeSpan: tableCaptions
+interblockSeparator
+BEGIN table (4 rows, 4 columns)
+- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines.
+- alignment of column 1: r
+- alignment of column 2: l
+- alignment of column 3: d
+- alignment of column 4: c
+- row 1, column 1: Right
+- row 1, column 2: (emphasis: Left)
+- row 1, column 3: Default
+- row 1, column 4: Center
+- row 2, column 1: 12
+- row 2, column 2: 12
+- row 2, column 3: 12
+- row 2, column 4: 12
+- row 3, column 1: 123
+- row 3, column 2: 123
+- row 3, column 3: (strongEmphasis: 123)
+- row 3, column 4: 123
+- row 4, column 1: 1
+- row 4, column 2: 1
+- row 4, column 3: 1
+- row 4, column 4: 1
+END table
+interblockSeparator
+BEGIN table (4 rows, 4 columns)
+- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines.
+- alignment of column 1: r
+- alignment of column 2: l
+- alignment of column 3: d
+- alignment of column 4: c
+- row 1, column 1: Right
+- row 1, column 2: (emphasis: Left)
+- row 1, column 3: Default
+- row 1, column 4: Center
+- row 2, column 1: 12
+- row 2, column 2: 12
+- row 2, column 3: 12
+- row 2, column 4: 12
+- row 3, column 1: 123
+- row 3, column 2: 123
+- row 3, column 3: (strongEmphasis: 123)
+- row 3, column 4: 123
+- row 4, column 1: 1
+- row 4, column 2: 1
+- row 4, column 3: 1
+- row 4, column 4: 1
+END table
+interblockSeparator