Debian Codegraph @

org/testdata/tables.html

raw
1 <figure>
2 <table>
3 <thead>
4 <tr>
5 <th class="align-right">a</th>
6 <th class="align-right">b</th>
7 <th class="align-right">c</th>
8 </tr>
9 </thead>
10 <tbody>
11 <tr>
12 <td class="align-right">1</td>
13 <td class="align-right">2</td>
14 <td class="align-right">3</td>
15 </tr>
16 </tbody>
17 </table>
18 <figcaption>
19 table with separator before and after header
20 </figcaption>
21 </figure>
22 <figure>
23 <table>
24 <thead>
25 <tr>
26 <th class="align-right">a</th>
27 <th class="align-right">b</th>
28 <th class="align-right">c</th>
29 </tr>
30 </thead>
31 <tbody>
32 <tr>
33 <td class="align-right">1</td>
34 <td class="align-right">2</td>
35 <td class="align-right">3</td>
36 </tr>
37 </tbody>
38 </table>
39 <figcaption>
40 table with separator after header
41 </figcaption>
42 </figure>
43 <figure>
44 <table>
45 <thead>
46 <tr>
47 <th>Character</th>
48 <th>Org</th>
49 <th>Rendered HTML</th>
50 </tr>
51 </thead>
52 <tbody>
53 <tr>
54 <td>Hyphen</td>
55 <td><code class="verbatim">a - b</code></td>
56 <td>a - b</td>
57 </tr>
58 <tr>
59 <td>Ndash</td>
60 <td><code class="verbatim">a -- b</code></td>
61 <td>a – b</td>
62 </tr>
63 <tr>
64 <td>Mdash</td>
65 <td><code class="verbatim">a --- b</code></td>
66 <td>a — b</td>
67 </tr>
68 <tr>
69 <td>Ellipsis</td>
70 <td><code class="verbatim">a ... b</code></td>
71 <td>a … b</td>
72 </tr>
73 </tbody>
74 </table>
75 <figcaption>
76 table with unicode characters
77 </figcaption>
78 </figure>
79 <figure>
80 <table>
81 <tbody>
82 <tr>
83 <td class="align-right">1</td>
84 <td class="align-right">2</td>
85 <td class="align-right">3</td>
86 </tr>
87 </tbody>
88 </table>
89 <figcaption>
90 table without header (but separator before)
91 </figcaption>
92 </figure>
93 <figure>
94 <table>
95 <tbody>
96 <tr>
97 <td class="align-right">1</td>
98 <td class="align-right">2</td>
99 <td class="align-right">3</td>
100 </tr>
101 </tbody>
102 </table>
103 <figcaption>
104 table without header
105 </figcaption>
106 </figure>
107 <figure>
108 <table>
109 <thead>
110 <tr>
111 <th class="align-left">left aligned</th>
112 <th class="align-right">right aligned</th>
113 <th class="align-center">center aligned</th>
114 </tr>
115 </thead>
116 <tbody>
117 <tr>
118 <td class="align-left">42</td>
119 <td class="align-right">42</td>
120 <td class="align-center">42</td>
121 </tr>
122 <tr>
123 <td class="align-left">foobar</td>
124 <td class="align-right">foobar</td>
125 <td class="align-center">foobar</td>
126 </tr>
127 </tbody>
128 </table>
129 <figcaption>
130 table with aligned and sized columns
131 </figcaption>
132 </figure>
133 <figure>
134 <table>
135 <thead>
136 <tr>
137 <th class="align-right">long column a</th>
138 <th class="align-right">long column b</th>
139 <th class="align-right">long column c</th>
140 </tr>
141 </thead>
142 <tbody>
143 <tr>
144 <td class="align-right">1</td>
145 <td class="align-right">2</td>
146 <td class="align-right">3</td>
147 </tr>
148 </tbody>
149 </table>
150 <figcaption>
151 table with right aligned columns (because numbers)
152 </figcaption>
153 </figure>
154 <figure>
155 <table>
156 <thead>
157 <tr>
158 <th class="align-right">a</th>
159 <th class="align-right">b</th>
160 <th class="align-right">c</th>
161 </tr>
162 </thead>
163 <tbody>
164 <tr>
165 <td class="align-right">1</td>
166 <td class="align-right">2</td>
167 <td class="align-right">3</td>
168 </tr>
169 <tr>
170 <td class="align-right">.</td>
171 <td class="align-right">.</td>
172 <td class="align-right">.</td>
173 </tr>
174 </tbody>
175 <tbody>
176 <tr>
177 <td class="align-right">1</td>
178 <td class="align-right">2</td>
179 <td class="align-right">3</td>
180 </tr>
181 </tbody>
182 <tbody>
183 <tr>
184 <td class="align-right">1</td>
185 <td class="align-right">2</td>
186 <td class="align-right">3</td>
187 </tr>
188 </tbody>
189 </table>
190 <figcaption>
191 table with multiple separators (~ multiple tbodies)
192 </figcaption>
193 </figure>