summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test
blob: 11db7c69e6c2c5f148bcfa06bc5a5d92607d91f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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