jgm/djot.js

Undefined table header text alignment

hellux opened this issue · 1 comments

hellux commented

Leaving out columns in the separator row causes the text-align value to be "undefined":

|a|b|c|
|-|
|1|2|3|
<table>
<tr>
<th>a</th>
<th style="text-align: undefined;">b</th>
<th style="text-align: undefined;">c</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>

I would expect it to be simply

<table>
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>

I am assuming this is a null value error.

jgm commented

Yes.