jgm / djot.js

JavaScript implementation of djot
MIT License
146 stars 16 forks source link

Undefined table header text alignment #41

Closed hellux closed 1 year ago

hellux commented 1 year ago

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 1 year ago

Yes.