File: tables.test

package info (click to toggle)
haskell-djot 0.1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 560 kB
  • sloc: haskell: 3,440; makefile: 3
file content (145 lines) | stat: -rw-r--r-- 1,532 bytes parent folder | download
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Simplest table:

```
| a |
.
<table>
<tr>
<td>a</td>
</tr>
</table>
```

```
|a|   *b*|
|*c| d* |
.
<table>
<tr>
<td>a</td>
<td><strong>b</strong></td>
</tr>
<tr>
<td>*c</td>
<td>d*</td>
</tr>
</table>
```

```
| `a |`
.
<p>| <code>a |</code></p>
```

```
| a | b |

^ With a _caption_
and another line.
.
<table>
<caption>With a <em>caption</em>
and another line.</caption>
<tr>
<td>a</td>
<td>b</td>
</tr>
</table>
```

Table headers:  note that we can have multiple headers; each
determines the alignment for following cells, until the next header.

```
|a|b|
|:-|---:|
|c|d|
|cc|dd|
|-:|:-:|
|e|f|
|g|h|
.
<table>
<tr>
<th style="text-align: left;">a</th>
<th style="text-align: right;">b</th>
</tr>
<tr>
<td style="text-align: left;">c</td>
<td style="text-align: right;">d</td>
</tr>
<tr>
<th style="text-align: right;">cc</th>
<th style="text-align: center;">dd</th>
</tr>
<tr>
<td style="text-align: right;">e</td>
<td style="text-align: center;">f</td>
</tr>
<tr>
<td style="text-align: right;">g</td>
<td style="text-align: center;">h</td>
</tr>
</table>
```

```
|--|--|
.
<table>
</table>
```

```
|---|---|
| a | b |
.
<table>
<tr>
<td>a</td>
<td>b</td>
</tr>
</table>
```

```
| |
.
<table>
<tr>
<td></td>
</tr>
</table>
```

```
| just two \| `|` | cells in this table |
.
<table>
<tr>
<td>just two | <code>|</code></td>
<td>cells in this table</td>
</tr>
</table>
```

Indented table:

```
  | a | b |
  |---|---|
  | 1 | 2 |
.
<table>
<tr>
<th>a</th>
<th>b</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>
```