Reputation: 16014
I want to show a markdown table where one of cells has a pipe "|"
Column1 | Column2
------- | -------
| | hello
Just doesn't work. How to escape the | in a table? I tried *|* also didn't work
Upvotes: 13
Views: 6858
Reputation: 1768
This depends on your markdown interpreter. But in general markdown escapes with backslash (like markdown extra additional the pipe)
Column1 | Column2
------- | -------
\| | hello
This works in markdown:
Column1 | Column2 |
---|---|
| | hello |
Upvotes: 16
Reputation: 1
You can use the HTML Entity
Column1 | Column2
------- | -------
| | hello
Unicode Character VERTICAL LINE
Upvotes: 12