File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ def _process_row(row, aligns):
95
95
'text' : text ,
96
96
'params' : (aligns [i ], False )
97
97
})
98
+
99
+ if len (cells ) < len (aligns ):
100
+ for align in aligns [len (cells ):]:
101
+ cells .append ({
102
+ 'type' : 'table_cell' ,
103
+ 'text' : '' ,
104
+ 'params' : (align , False ),
105
+ })
106
+
98
107
return {'type' : 'table_row' , 'children' : cells }
99
108
100
109
Original file line number Diff line number Diff line change @@ -280,3 +280,30 @@ a | b
280
280
</tbody>
281
281
</table>
282
282
````````````````````````````````
283
+
284
+
285
+ ```````````````````````````````` example
286
+ | Foo | Bar |
287
+ |-----|-----|
288
+ | boo | baz |
289
+ | faz | |
290
+ .
291
+ <table>
292
+ <thead>
293
+ <tr>
294
+ <th>Foo</th>
295
+ <th>Bar</th>
296
+ </tr>
297
+ </thead>
298
+ <tbody>
299
+ <tr>
300
+ <td>boo</td>
301
+ <td>baz</td>
302
+ </tr>
303
+ <tr>
304
+ <td>faz</td>
305
+ <td></td>
306
+ </tr>
307
+ </tbody>
308
+ </table>
309
+ ````````````````````````````````
You can’t perform that action at this time.
0 commit comments