julioschuambach
julioschuambach

Reputation: 13

How can I write pipelines (|) inside tables in markdown?

I'd like to documentate my code using the simbol |(pipeline) inside a table. Is is possible in markdown without breaking the table structure?

Something like this:

| Text | Text | Text |
| :---: | :---: | :---: |
| || | some text here | blablabla |

As you can see below, the pipelines break the table in markdown, once it is used to demarcate the content inside the table. I'm trying to find a way of writing the pipelines in some formatting without breaking the table content: | Text | Text | Text | | :---: | :---: | :---: | | || | some text here | blablabla |

I've already tried some of the basic formatting, like:

`||`
```||```
*||*
**||**
***||***
<html>||</html>
<table struct in html>

And many others...

Upvotes: 1

Views: 392

Answers (1)

Jan K&#246;hler
Jan K&#246;hler

Reputation: 6030

You can escape that character by using a backslash: \|

Alternatively you can use the HTML entity &#124;

Upvotes: 2

Related Questions