When I'm trying to display a table of operators in a programming language syntax documentation, I'm unable to put a pipe inside a code block into a table. The pipe seems to be interpreted as a table separator, even if it is included inside the backticks. The simple minimum example below demonstrates the problem:
Operator | Description
---------|---------------------
`!=` | Not equals operator
`|` | Pipe operator
The result is not what is expected:

I have been unable to find a workaround that allows me to have a pipe symbol in a code block inside a table. I have tried putting backslash inside the backticks: This displays | as expected, but it also displays \.

Funnily enough, github seems to have the same bug:
| Operator |
Description |
!= |
Not equals operator |
| ` |
` |
Except at least it works with a backslash
| Operator |
Description |
!= |
Not equals operator |
| |
Pipe operator |
When I'm trying to display a table of operators in a programming language syntax documentation, I'm unable to put a pipe inside a code block into a table. The pipe seems to be interpreted as a table separator, even if it is included inside the backticks. The simple minimum example below demonstrates the problem:
The result is not what is expected:
I have been unable to find a workaround that allows me to have a pipe symbol in a code block inside a table. I have tried putting backslash inside the backticks: This displays
|as expected, but it also displays\.Funnily enough, github seems to have the same bug:
!=Except at least it works with a backslash
!=|