File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 91
91
</ tr >
92
92
</ tbody >
93
93
</ table >
94
+ < table >
95
+ < thead >
96
+ < tr class ="header ">
97
+ < th colspan ="2 "> header</ th >
98
+ </ tr >
99
+ </ thead >
100
+ < tbody >
101
+ < tr class ="odd ">
102
+ < td > cell 1</ td >
103
+ < td > cell 2</ td >
104
+ </ tr >
105
+ </ tbody >
106
+ </ table >
Original file line number Diff line number Diff line change @@ -133,7 +133,12 @@ local function process(div)
133
133
local header_col_count = tonumber (div .attr .attributes [' header-cols' ]) or 0
134
134
div .attr .attributes [' header-cols' ] = nil
135
135
136
- local colspecs = get_colspecs (div .attr .attributes , # rows [1 ][2 ])
136
+ local column_count = 0
137
+ for i = 1 , # rows [1 ][2 ] do
138
+ column_count = column_count + rows [1 ][2 ][i ].col_span
139
+ end
140
+
141
+ local colspecs = get_colspecs (div .attr .attributes , column_count )
137
142
local thead_rows = {}
138
143
for i = 1 , header_row_count do
139
144
table.insert (thead_rows , table.remove (rows , 1 ))
Original file line number Diff line number Diff line change 54
54
* - reStructuredText
55
55
- [ ] {align=c} ` ``code`` `
56
56
:::
57
+
58
+ ::: list-table
59
+ * - [ ] {colspan=2}header
60
+ * - cell 1
61
+ - cell 2
62
+ :::
You can’t perform that action at this time.
0 commit comments