Skip to content

Unable to put the pipe symbol in an inline code block into a table #59

Description

@flysand7

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:

Image

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 \.

Image


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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions