jgm / djot

A light markup language
https://djot.net
MIT License
1.66k stars 43 forks source link

Escaped pipes in tables #111

Closed hellux closed 1 year ago

hellux commented 1 year ago

The syntax reference mentions that "Djot is smart enough to recognize backslash-escaped pipes and pipes in verbatim spans; these do not count as cell separators". It lists

| just two \| `|` | cells in this table |

which generates

<table>
<tr>
<td>just two \</td>
<td><code>|</code></td>
<td>cells in this table</td>
</tr>
</table>

It has separated into three cells and shows the backslash, but I am assuming it is supposed to be:

<table>
<tr>
<td>just two | <code>|</code></td>
<td>cells in this table</td>
</tr>
</table>
jgm commented 1 year ago

Thanks, added a test for this. Will fix later.