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
A table is an arrangement of data in rows and columns. To add a table in Markdown, use the vertical line | to separate each column, and use three or more dahses --- to create each column's header. A vertical line should also be added at either end of the row.
In Markdown, you can escape various characters using a backslash ( \ ), so if you wanted to type C#, you would use C\# .
In Markdown applications that support task lists, checkboxes will be displayed next to the content. To create a task list, add dashes ( – ) and brackets with a space ( [ ] ) in front of task list items. To select a checkbox, add an x in between the brackets ( [x] ).
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 |
You can use the HTML Entity
Column1 | Column2
------- | -------
| | hello
Unicode Character VERTICAL LINE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With