How to escape pipe (|) symbol while writing markdown tables


I want to show pipe (|) symbol in one of the column's data, but when i simply write (|) markdown considering it as a separate column.

1 Answer

7 years ago by

Use HTML Character code | instead of Pipe | symbol like below

|Name|Age|
|---|---|
| Foo | 23 |
|Bar | xyz| 23 |

This results in following

NameAge
Foo23
Bar | xyz23
7 years ago by Karthik Divi