[Pipe Tables Extension] Tables without borders shift cells left if first column empty #414

Open
opened 2026-01-29 14:36:10 +00:00 by claunia · 0 comments
Owner

Originally created by @robertwahler on GitHub (Nov 13, 2020).

Parsing is shifting row cells left on this table

a | b
--|--
  | 2

it generates this HTML

<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td></td>
</tr>
</tbody>
</table>

This bordered table works as expected

| a | b |
|---|---|
|   | 2 |

and generates expected HTML

<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>2</td>
</tr>
</tbody>
</table>
Originally created by @robertwahler on GitHub (Nov 13, 2020). Parsing is shifting row cells left on this table ```markdown a | b --|-- | 2 ``` it generates this HTML ```html <table> <thead> <tr> <th>a</th> <th>b</th> </tr> </thead> <tbody> <tr> <td>2</td> <td></td> </tr> </tbody> </table> ``` This bordered table works as expected ```markdown | a | b | |---|---| | | 2 | ``` and generates expected HTML ```html <table> <thead> <tr> <th>a</th> <th>b</th> </tr> </thead> <tbody> <tr> <td></td> <td>2</td> </tr> </tbody> </table> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#414