xiaodai
xiaodai

Reputation: 16014

How to show the pipe "|" symbol in Markdown table?

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

Answers (2)

klml
klml

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

Zombo
Zombo

Reputation: 1

You can use the HTML Entity

Column1 | Column2
------- | -------
|  | hello

Unicode Character VERTICAL LINE

Upvotes: 12

Related Questions