Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
flysand7 opened this issue Mar 8, 2025 · 1 comment
Open

Comments

@flysand7
Copy link

flysand7 commented Mar 8, 2025

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
@flysand7
Copy link
Author

flysand7 commented Mar 8, 2025

For now found a workaround. I'm switching to HTML tables. They're easier to edit anyway and support way more than plain markdown tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant