summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test')
-rw-r--r--macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test79
1 files changed, 79 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test
new file mode 100644
index 0000000000..7bcab8e5b3
--- /dev/null
+++ b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test
@@ -0,0 +1,79 @@
+\def\markdownOptionPipeTables{true}
+<<<
+This test ensures that the Lua `tableCaptions` option is disabled by
+default.
+
+| 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:
+- 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
+emphasis: pipe table
+interblockSeparator
+BEGIN table (4 rows, 4 columns)
+- caption:
+- 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
+emphasis: pipe table
+interblockSeparator